Is their any change/rollback for audience in access token, which was expected to be "https://graph.microsoft.com"?

M. R. Chaturvedi 0 Reputation points
2024-10-11T09:54:35.37+00:00

I am writing to seek clarification regarding an issue I encountered with the access token obtained through the following request:

Request Path: /sites/SITE_NAME/_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource=%27https://graph.microsoft.com%27&clientId=<client_id>

Until last week, the expected audience for the access token was 'https://graph.microsoft.com'. However, I received a token with the value '00000003-0000-0000-c000-000000000000' instead. As of October 8th, the request has started returning the expected audience 'https://graph.microsoft.com' again, despite no changes made to my configurations or code on my end.

Could you please confirm if there were any changes or rollbacks made by Microsoft that could explain this inconsistency? This issue is critical for my application, and I would appreciate your prompt response.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,319 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,725 Reputation points Microsoft Vendor
    2024-10-14T02:47:17.8133333+00:00

    Hello M. R. Chaturvedi,

    Thank you for reaching out to Microsoft Support!

    As far as I know, Graph hasn't made any changes to the audience in the access token.

    The request path for you to get access tokens is not the Graph recommended way, and it is recommended that you use Graph recommended requests instead, if possible.

    If you are using delegated permissions, it is recommended that you use Auth code flow.

    If you are using application permissions, Client Credentials flow is recommended.

    In the meantime, you can refer to this case, which also occurs if the scope is miswritten.

    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

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.