About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
A user opens an application that signs in through Microsoft Entra ID and is stopped with an AADSTS700003 error. The text says that the device object was not found in the tenant directory, or that the organisation has deleted the device. The error is about the device, not the person: the page says the device object is no longer in the directory.
Microsoft's page for this error gives the cause in one line, the device object was deleted in the home tenant, and a short table of what to do for each of the three ways a device can be registered or joined. The checks below show which row applies and the order to run them in, because the three remedies are not interchangeable.
Nothing before the Fix section changes anything.
What the error means
The page says that when you try to sign in to an application integrated into Microsoft Entra ID, you receive an "AADSTS700003" error with one of these messages:
Device object was not found in the tenant '<TenantName>' directory.
Your organization has deleted this device.
The page's cause: "This issue occurs because the device object is deleted on your home tenant." When a device is deleted, the "Delete device" activity type is recorded in the Microsoft Entra audit log. The page lists three ways to register or join user devices: Microsoft Entra registered, Microsoft Entra joined and Microsoft Entra hybrid joined. Each creates a device identity, which the page says is used in scenarios such as device-based Conditional Access policies and Mobile Device Management with Microsoft Intune. When AADSTS700003 appears, the device object is not found in the tenant.
So the first question is not about the user; it is who deleted the device object, when and why. The page's solution begins: engage the home tenant administrators to determine when and why the device object was deleted, and then act according to the device registration or join type.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| An administrator deleted the device object on purpose | AADSTS700003 when signing in from that device | The Microsoft Entra audit log shows a "Delete device" activity for the device |
| A bulk clean-up of devices removed it (our reading; the page says only that the object was deleted) | Same error on a device that was not used for a while | The same audit log entry, and the clean-up process of the tenant owner |
| The device is Microsoft Entra registered, joined or hybrid joined, and needs the matching fix | The error is the same for all three | dsregcmd /status, read below |
The page gives no counts, so the rows are not in order of likelihood. The first and the last rows are the ones the page itself addresses.
Prove the cause before changing anything
All of these read only.
-
Confirm the error. The page's two messages are "Device object was not found in the tenant" and "Your organization has deleted this device". Ask the user for the message, the application and the time.
-
Find the join type of the device. Microsoft's dsregcmd page says to run
dsregcmd /statusas a domain user account and read the Device State section:
dsregcmd /status
The page's table reads like this: AzureAdJoined YES, EnterpriseJoined NO and DomainJoined NO is Microsoft Entra joined. AzureAdJoined NO, EnterpriseJoined NO and DomainJoined YES is domain joined. AzureAdJoined YES and DomainJoined YES with EnterpriseJoined NO is Microsoft Entra hybrid joined. The same page says the Workplace Joined (Microsoft Entra registered) state appears in the "User state" section, as the WorkplaceJoined field. It also says the device details section, with the DeviceId, is displayed only for joined or hybrid joined devices, not registered ones. Save the output.
-
Look for the deletion. Microsoft's device management page says the audit log entry point is Audit logs in the Activity section of the Devices page in the Microsoft Entra admin center. Search for a "Delete device" activity for the device name or DeviceId from the dsregcmd output, and note who did it and when.
-
Check the sign-in log for the failing attempt. Microsoft's sign-in troubleshooting page says to sign in to the Microsoft Entra admin center as at least a Reports Reader, browse to Entra ID, Monitoring and health, Sign-in logs, select Failure from the Status menu, and open the failed sign-in. Save the Correlation ID, the sign-in error code, the failure reason and the user details; the error code should show 700003.
-
Ask the tenant administrators why the device was deleted. The page's remedy starts there, because if the deletion was intended, the right outcome may be that the device stays out.
Example (illustrative): a Wollongong accounting firm has a quarterly clean-up of devices that have not signed in for a while. fin-lt02 was off for a quarter, was cleaned up, and is now used again. dsregcmd /status reports AzureAdJoined YES, EnterpriseJoined NO and DomainJoined NO, so it is Microsoft Entra joined. The audit log shows a Delete device activity by the clean-up two weeks earlier. That fits the page.
Fix
First agree with the home tenant administrators that the device should be restored to use. Then follow the row for the device's join type. Each row is in the page's table; run the one that matches the proof.
Microsoft Entra registered device
Disruptive step: The next step disconnects the work or school account from this device. Apps and resources that rely on that registration lose access until the device is registered again, and the page gives the re-registration only as an instruction, not as steps.
Windows 10 and 11: the page says to go to Settings, then Accounts, then Access Work or School, select your work or school account, select Disconnect to disconnect the device, and then register the device to Microsoft Entra ID again.
Before you start, note the work or school account shown on the screen and what the user uses it for.
Select Disconnect for the account in Access Work or School, then register the device again.
To undo it: registering the device again is the page's own next step; there is no way to reverse the disconnect other than registering.
iOS and Android devices
Disruptive step: The next step removes the device's registration with Microsoft Entra ID. Apps and resources that rely on that registration lose access until the device is registered again, and the page gives the re-registration only as an instruction, not as steps.
Before you start, note the work or school account shown in the Microsoft Authenticator app and what the user uses it for.
The page says to use the Microsoft Authenticator app and select Settings, then Device Registration, then Unregister device, and then register the device again.
To undo it: registering the device again is the page's own next step; there is no way to reverse the unregister other than registering.
macOS devices
Disruptive step: The next step unenrolls the Mac from management and removes any registration, so the device is no longer managed through Microsoft Intune. On our reading, anything the organisation delivers through that management, such as policies and apps, stops applying until the device is enrolled again, and the page gives the re-registration only as an instruction, not as steps.
Before you start, note the work or school account and the management the Mac currently has, so it can be enrolled again.
The page says to use the Microsoft Intune Company Portal application to unenroll the device from management and remove any registration, and then register the device again.
To undo it: registering and enrolling the device again is the page's own next step; there is no way to reverse the unenrolment other than enrolling again.
Microsoft Entra joined device
Disruptive step: The next command starts a forced recovery of the device's Microsoft Entra join. The page says to sign in with the Microsoft Entra ID account afterwards, and it gives no description of what the command changes or of what happens if the sign-in fails. The page gives no command that reverses it, so it cannot be undone.
The page says to open a PowerShell console with administrative rights on the Windows device, run the dsregcmd /forcerecovery command, and then select Sign in to sign in with your Microsoft Entra ID account.
Before you start, keep the dsregcmd /status output saved in the proof step, and confirm that the user knows their Microsoft Entra ID sign-in details.
Run in an elevated PowerShell console, as the page says:
dsregcmd /forcerecovery
Then select Sign in and sign in with the Microsoft Entra ID account.
To undo it: there is no back-out, as the warning above says. If the sign-in does not complete, the saved dsregcmd /status output records the earlier state for the support case.
Microsoft Entra hybrid joined device
Disruptive step: The next command makes the device leave its Microsoft Entra join, and the page then tells you to reboot the device. The page gives no command that reverses a leave, so it cannot be undone. As general advice, not from the page, the user is signed out and anything unsaved is lost on the restart. Also, the page does not describe how the hybrid join is created again beyond signing in with the domain credential.
The page says to open a PowerShell console with administrative rights on the Windows device and run the dsregcmd /leave command. Then reboot the device and sign in to the device with your domain credential.
Before you start, keep the dsregcmd /status output from the proof step, and make sure the user has working domain credentials.
Run in an elevated PowerShell console, as the page says:
dsregcmd /leave
Then reboot the device and sign in with the domain credential.
To undo it: there is no reverse command, as the warning above says. That is the page's next step, not a reversal of the leave: reboot and sign in with the domain credential. If the device does not return to hybrid joined, dsregcmd /status shows the state to report to the tenant administrators.
Confirm the fix
- The application sign-in completes with no AADSTS700003 error.
dsregcmd /statusshows the join state the device should have, with a DeviceId for joined or hybrid joined devices, or WorkplaceJoined set for a registered one.- The device appears again in the Microsoft Entra admin center device list, and the failed sign-in entry has been followed by a successful one.
- The ticket records the audit log entry, the join type, the command or step used and the time.
What to watch afterwards
- Other devices removed by the same clean-up. The page's cause is deletion in the home tenant, so each device deleted that way can give the same error when it next signs in.
- Conditional Access or Intune policies that depend on the device identity, which the page names as uses of the device object.
- Stale-device clean-ups. Microsoft's device management page says deleting a device is a nonrecoverable activity that removes details attached to it, for example BitLocker keys for Windows devices, so check what a clean-up removes.
- Sign-in logs for the same error code from other users.
Read next
Related articles you may want next.
- TroubleshootingAADSTS53003: Access has been blocked by Conditional Access policies — finding which policy blocked the sign-inAADSTS53003 BlockedByConditionalAccess: read the Entra sign-in log, find the policy that blocked the user, test with What If and change it safely.Read article
- TroubleshootingWindows enrolment fails in Intune: error codes 8018000a, 80180014, 80180022, 80180026 and 8018002b explainedIntune enrolment fails with 8018000a, 80180014, 80180022, 80180026 or 8018002b? What each code means, how to prove it and the setting to change.Read article
- TroubleshootingAADSTS50057: "The user account is disabled" when signing in to a Microsoft Entra applicationAADSTS50057 means the user object is disabled in the resource tenant. How to confirm it, decide whether it should stay disabled, and re-enable it safely.Read article
Risks and limits
These steps have not been run or lab-tested.
The page explains that the device object was deleted but not why a device was deleted, and it says to engage the home tenant administrators to find out. It gives no description of what dsregcmd /forcerecovery and dsregcmd /leave change on the device, and no way to reverse either. It says nothing about BitLocker keys or Intune enrolment for a device that is joined again. The page's table lists steps for macOS, iOS and Android only in one sentence each. Microsoft's pages give no counts for how many cases each cause covers.
Sources
- Error AADSTS700003 - Device object was not found in the tenant '<TenantName>' directory — Microsoft Learn, page dated 2026-01-15, accessed 2 December 2026
- Troubleshoot devices by using the dsregcmd command — Microsoft Learn, page dated 2025-06-27, accessed 2 December 2026
- Manage device identities using the Microsoft Entra admin center — Microsoft Learn, page dated 2026-11-12, accessed 2 December 2026
- How to troubleshoot Microsoft Entra sign-in errors — Microsoft Learn, page dated 2025-04-25, accessed 2 December 2026
This article was originally published on .