How can we retrieve the calendar of an external user using the Microsoft Graph API?

Satish Rabari 30 Reputation points
2024-01-19T12:53:32.5833333+00:00

As an invited guest user in my tenant, I can successfully log in using the tenant application. However, external guest users are unable to make successful calls to the Azure API for retrieving the calendar list, whereas standard member users can call it successfully.

I am getting following errors:

{
  "error": {
    "code": "AuthOMMissingRequiredPermissions",
    "message": "The AadGuestPft token doesn't contain the permissions required by the target API for calling app '00000003-0000-0000-c000-000000000000'.",
    "innerError": {
      "oAuthEventOperationId": "bbfaa161-3680-4790-a0fc-f2d36f87ac6d",
      "oAuthEventcV": "P2yQe5CjjZSldssPbDc6vQ.1",
      "errorUrl": "https://aka.ms/autherrors#error-InvalidGrant",
      "requestId": "fdfb03dc-fb78-e966-15c7-63bb0390c94d",
      "date": "2024-01-19T12:40:26"
    }
  }
}
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Diah.Karim-MSFT 335 Reputation points Microsoft External Staff
    2024-01-24T01:51:31.42+00:00

    Hi Satish, I think there is a similar issue from previous post. Kindly refer to below link: https://learn.microsoft.com/en-us/answers/questions/1160460/microsoft-graph-api-how-to-access-guest-user-calen 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".


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.