Encountered 'UnknownError' in /me/revokeSignInSessions endpoint.

Agami Technologies 40 Reputation points
2024-06-20T12:25:11.1733333+00:00

I am using OAuth 2.0 authorization to authenticate email. However, when I revoke the access token, it returns an "UnknownError" with a 404 status code. Despite efforts, I have not yet identified a suitable solution to resolve this issue.

API:

POST https://graph.microsoft.com/v1.0/me/revokeSignInSessions

Error Response:

User's image

App Permissions:User's image

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

1 answer

Sort by: Most helpful
  1. AsithwMSFT 1,420 Reputation points Microsoft Vendor
    2024-06-22T19:31:46.3066667+00:00

    Hi @Agami Technologies

    It looks like you don’t have correct permission, Can you please try again with the Least privileged permissions scope User.RevokeSessions.All

    User's image

    https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=http#permissions

    0 comments No comments