Problems with Graph API

Joaquín Viana Guelfi 21 Reputation points
2022-12-22T18:35:59.587+00:00

Hi!

I am having problems with an app that uses Microsoft Graph API.

The issue is the following:

Error: invalid_client

AADSTS650052: The app is trying to access a service xxxxxxx(xxxxxx) that your organization 'xxxxxxxx' Opens in a new window; external.' lacks a service principal for. Contact your IT Admin to review the configuration of your service subscriptions or consent to the application in order to create the required service principal.
Trace ID: 4128b628-7290-483f-961d-6a7084533b00
Correlation ID: c80c4448-6bc5-4367-9188-f57dfe55ee93
Timestamp: 2022-12-22 17:42:58Z

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. Bhanu Kiran 3,616 Reputation points
    2022-12-22T19:26:22.837+00:00

    Hello @Joaquín Viana Guelfi ,

    This error: AADSTS650052 is caused by your application requesting a scope from a multi-tenant resource/application not yet registered in your tenant. That is the resource is hosted in another tenant.

    Use the following PowerShell script to register the multi-tenant app in your tenant.

    Connect-AzureAD  -TenantId "599e51d6-2f8c-4347-8e59-1f795a51a98c"  
    New-AzureADServicePrincipal -AppId <MULTI TENANT APP ID>  
    

    Hope this helps.
    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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