Error Access Denied while use the microsoft graph list calendar view

poovarasan d 60 Reputation points
2023-02-13T11:14:42.9833333+00:00

I give both delegated and application permission in calendar.read,calendar.write

User's image

error pass when i am using "v1.0/me" end point, App registration is done by the admin account, i can access me/user, me/calendars/event, /me/calendars but i can't access list calendar view

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. HarmeetSingh7172 4,826 Reputation points
    2023-02-13T11:45:51.7366667+00:00

    Hello poovarasan d

    Thanks for reaching out!

    I'm able to replicate this issue using my test tenant, and I have resolved this with below approach.

    I removed & revoked the Calendars.ReadBasic delegated permission from the registered application (in Azure) and granted only the required (or least privileged to most privileged) delegated permissions to execute List CalendarView Graph API [Calendar.Read, Calendar.ReadWrite].

    Additionally, as a best practice, I would recommend you to not use time window of more than one week while using CalendarView. This is because CalendarView API does a lot of processing in the backend before providing the results.

    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.


0 additional answers

Sort by: Most helpful

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.