How to Revoke the referesh token for outlook?

Hinal Halvadia 1 Reputation point
2020-10-05T07:32:06.407+00:00

I want to logout from outlook email, but I am not found any graph API for the revoke the token or refresh token

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,735 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,236 Reputation points
    2020-10-05T08:18:15.667+00:00

    Hello @Hinal Halvadia As of now you can not revoke refresh token for specific app such as outlook. You have to revoke the refresh token for a given user account.

    You can use Azure AD Graph to Invalidate all refresh tokens for a user using below Graph Call:

       POST https://graph.windows.net/myorganization/users/{user_id}/invalidateAllRefreshTokens?api-version=1.6  
    

    Or you can use Azure AD Powershell for this purpose as well:

       Revoke-AzureADUserAllRefreshToken -ObjectId "<user_object_id>"  
    

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.