Why am i getting access denied error when i try to access calender of other users in my organization

Saira Munir 100 Reputation points
2024-10-03T09:25:28.75+00:00

Hi,

When i access microsoft Calender for other users in my organization . I get access denied error. My user id already has super admin access

Please check screenshot and let me know what access is required

Screenshot 2024-10-03 045536.png

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,095 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,290 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,097 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,248 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,068 questions
0 comments No comments
{count} votes

Accepted answer
  1. Hitesh Pachipulusu - MSFT 2,915 Reputation points Microsoft Vendor
    2024-10-03T09:47:50.5+00:00

    Hello Saira Munir,

    Thank you for reaching out to Microsoft Support!

    Even with admin privileges, accessing another user’s calendar requires that the calendar be shared with the signed-in user. Additionally, the Calendars.Read.Shared permission must be granted.

    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.


1 additional answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,415 Reputation points Microsoft Vendor
    2024-10-03T10:05:00.1566667+00:00

    Hi @Saira Munir

    When this endpoint uses delegation permissions, it also requires Calendars.Read.Shared permission, which you can also use with application permissions Calendars.ReadBasic.All.

    User's image

    You need to register the app in Azure, add this permission to the app, and then use the client credentials flow to get the token. Once you get the token, it is recommended to parse the token in jwt.ms, making sure that the token has the Calendars.ReadBasic.All permission.

    Screenshot 2024-10-03 095941

    Finally, you can send requests through Postman to get tokens and access other users' Calendarview.

    You can also refer to the full tutorial:

    https://learn.microsoft.com/en-us/graph/auth-v2-service?tabs=http

    Hope this helps.

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

    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.