How to Revoke access to use outlook calendar

Ravinder Kaur 0 Reputation points
2023-08-22T11:53:38.0166667+00:00

I am using microsoft graph api to authorize the outlook calendar api for different users on my web application. I want to add the revoke access to the user account when he/she choose other email provider then outlook. When user choose any other email provider then their outlook access should be revoked and removed, so that he/she would be no longer able to access our App. This Revoke feature is available in Google Calendar API but I could not find any solution into Outlook Calendar API.

Please advise.

Thanks

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. SokiGuo-MSFT 31,536 Reputation points Microsoft External Staff
    2023-08-23T07:27:15.9533333+00:00

    Hi @Ravinder Kaur

    Welcome to our forum!

    Please kindly understand that the Outlook tag here we mainly focus on general issues about Outlook desktop client. Looks like the issue is more related to Graph API, which we are not very familiar. The following is for informational purposes only.


    According to my search, this document details an example of setting calendar permissions, you can refer to: https://learn.microsoft.com/en-us/graph/outlook-share-or-delegate-calendar?tabs=http.

    In addition, there is a similar thread provided by the method you can refer to:

    Drop and from your list of requested scopes. Calendars.ReadCalendars.ReadWrie

    • In order to ensure this change is reflected in the user's account, you'll need to re-authenticate the user with the query param auth URI. prompt=consent

    Hope this helps!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    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.