Graph Api giving unauthorised error for specific credentials

Abhishek Negi 21 Reputation points
2022-02-07T17:10:23.047+00:00

171889-img-20220207-223416.jpg

Earlier Api was working fine but after changing my outlook password it is giving this error

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,447 questions
0 comments No comments
{count} votes

Accepted answer
  1. JanardhanaVedham-MSFT 3,536 Reputation points
    2022-02-08T06:24:14.107+00:00

    Hi @Abhishek Negi ,

    I am also able to replicate this issue with new password change scenario of signed-in user in Microsoft Graph Explorer app. As you can see below, I did tested the same using same user's account in Postman API tool with the delegated scope and List chats API is working fine without any issue.

    Moreover List chats API is retuning the response in graph explorer for some times when you re-execute the API again and receving "Unauthorized" error response for some times. Graph exporer runs based on the deleged scope with signed-in user's account and it seems to be an intermittent issue with graph explorer azure AD app because of new password change. My understanding it that, it may take sometime for graph exploer app for auto resolution. Please verify it again in day or two and see if it is resolved.

    In the meantime, I would also advise you to use Postman with the Microsoft Graph API as an alternative API testing tool.

    Example output in Graph Explorer app:

    172115-image.png

    Example output in Postman API tool :

    172116-image.png

    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