Share via

How to fix "AADSTS500011: The resource princi"pal named https://marketplaceapi.microsoft.com was not found in the tenant

Salila Sharma 20 Reputation points
2026-03-26T17:20:27.8966667+00:00

We are encountering error below when we are receiving token from microsoft marketplace and verifying

{

    "error": "invalid_resource",

    "error_description": "AADSTS500011: The resource principal named https://marketplaceapi.microsoft.com was not found in the tenant named The Ansa Group. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 10044dc5-9edc-4d76-b7cf-b4c3870a1000 Correlation ID: da02332f-c526-4f12-8d68-831228b99405 Timestamp: 2026-03-26 16:13:02Z",

    "error_codes": [

        500011

    ],

    "timestamp": "2026-03-26 16:13:02Z",

    "trace_id": "10044dc5-9edc-4d76-b7cf-b4c3870a1000",

    "correlation_id": "da02332f-c526-4f12-8d68-831228b99405",

    "error_uri": "https://login.microsoftonline.com/error?code=500011"

}

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Answer accepted by question author
  1. Rukmini 36,140 Reputation points Microsoft External Staff Moderator
    2026-03-26T17:46:12.63+00:00

    Hello Salila Sharma

    The error usually occurs if you are passing scope as https://marketplaceapi.microsoft.com which is not valid.

    To generate the access token for Microsoft Marketplace, you need to pass resource as 20e940b3-4c77-4b0b-9a53-9e16a1b010a7 and no need to you do NOT need to add API permissions manually to the Entra app.

    To resolve the issue, please pass resource as 20e940b3-4c77-4b0b-9a53-9e16a1b010a7 like below:

    Pass v1.0 token Endpoint : https://login.microsoftonline.com/TenantID/oauth2/token

    User's image

    Reference: https://learn.microsoft.com/de-de/partner-center/marketplace-offers/marketplace-metering-service-authentication#request-body

    Let me know if any further queries - feel free to reach out!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.