Edit

Share via


Error AADSTS700003 - Device object was not found in the tenant '<TenantName>' directory

This article discusses how to resolve the "AADSTS700003" error that occurs when you try to sign in to an application that's integrated into Microsoft Entra ID.

Symptoms

When you try to sign in to an application that's integrated into Microsoft Entra ID, you receive an "AADSTS700003" error with one of the following error messages:

  • Device object was not found in the tenant '<TenantName>' directory.

  • Your organization has deleted this device.

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. In Microsoft Entra ID, there are three ways to register or join user devices:

  • Microsoft Entra registered
  • Microsoft Entra joined
  • Microsoft Entra hybrid joined

Device registration or join creates a device identity. This device identity is used in scenarios such as device-based Conditional Access policies and Mobile Device Management with Microsoft Intune. When you receive the AADSTS700003 error, the device object isn't found in the tenant.

Solution

Engage the home tenant administrators to determine when and why your device object is deleted. Then, take the corresponding action depending on the device registration/join type, as shown in the following table:

Device join type Action
Microsoft Entra registered For Windows 10/11 Microsoft Entra registered devices, go to Settings > Accounts > Access Work or School. Select your work or school account on the screen. Select Disconnect to disconnect the device. Then, register the device to Microsoft Entra ID again.

For iOS and Android, you can use the Microsoft Authenticator application and select Settings > Device Registration > Unregister device. Then, register the device to Microsoft Entra ID again.

For macOS, you can use the Microsoft Intune Company Portal application to unenroll the device from management and remove any registration. Then, register the device to Microsoft Entra ID again.

For more information, see Microsoft Entra register FAQ.
Microsoft Entra joined Open a PowerShell console with the administrative right on the Windows device, and run the dsregcmd /forcerecovery command. Select Sign in to sign in with your Microsoft Entra ID account.
Microsoft Entra hybrid joined Open a PowerShell console with the administrative right on the Windows device, and run the dsregcmd /leave command. Then, reboot the device and sign in to the device with your domain credential.

More information

For a full list of authentication and authorization error codes, see Microsoft Entra authentication and authorization error codes.

To investigate individual errors, go to https://login.microsoftonline.com/error.

Contact us for help

If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure feedback community.