What the error means
AADSTS500011 is the Microsoft Entra code InvalidResourceServicePrincipalNotFound. An application asked Microsoft Entra ID for a token to call a resource, such as an API identified by a URL or App ID URI, and the tenant in the request has no service principal for that resource. Without it, Microsoft Entra ID cannot issue a token for the resource.
Microsoft's reference explains that this can happen when the application has not been installed by the tenant's administrator or consented to by any user, or when the request was sent to the wrong tenant. If you expect the app to be installed, an administrator may need to add it. Microsoft also suggests checking with the developers of the resource and application to understand the right setup for your tenant.
Common causes
Microsoft's AADSTS500011 troubleshooting article lists four causes:
- The resource application is not provisioned by the administrator in the tenant.
- The resource application is not consented to by any user in the tenant.
- The resource URL is not configured correctly.
- The tenant ID is not correct.
How to fix it
1. Compare the tenant ID in the error with your tenant
Read the tenant named in the error message. Microsoft's article says to verify it is the same as your tenant ID and that the authentication request is sent to the correct Microsoft Entra ID tenant.
2. Check the resource URL
Verify that the resource URL in the error matches the resource application provisioned in your tenant, and that the request uses the correct resource URL.
3. Verify the resource application is provisioned
Go to the Azure portal and open Microsoft Entra ID, Enterprise applications. Check whether the resource application is listed and correctly configured. If it is missing, it has not been provisioned in this tenant.
4. Make sure the resource has been consented to
In Enterprise applications, find the application and make sure it has the necessary permissions and consent. Microsoft's consent troubleshooting article adds that the fix for a missing resource is to work with the application owner to verify that the App ID URI is correct and exists in the tenant named in the request. The enterprise application guide explains how app registrations and service principals relate.
5. Ask the developers for the intended setup
If the resource belongs to a third party or another team, ask its developers how it should be set up in your tenant. Microsoft's reference says an administrator might need to provide permissions to add it.
If nothing works
Capture the full sign-in request, for example from the browser address bar or with an HTTP tool, and confirm the resource and tenant values match what the resource owner expects. The consent troubleshooting article uses this request to test whether a resource exists in the tenant. For other codes, Microsoft's reference points to the login.microsoftonline.com/error lookup page.
What we checked
Three Microsoft Learn pages were read on 2026-11-21. The Microsoft Entra error code reference defines AADSTS500011 as InvalidResourceServicePrincipalNotFound. The dedicated AADSTS500011 article lists the four causes and the provisioning, consent, resource URL and tenant ID checks. The consent troubleshooting article shows the same error during resource checks and says to verify the App ID URI with the application owner. The error was not reproduced for this page.
Last checked: 2026-11-21.