I have registered an app in the azure portal for an organization. With the graph api I am able to access all users present in the tenant using graph api graph.microsoft.com/v1.0/users
.
This is the process that I am using to get an individual user's calendar:
- graph.microsoft.com/v1.0/users.
- copy
id/userPrincipalName
of a user. - graph.microsoft.com/v1.0/users/id/calendars/events.
In this process I am getting 403 forbidden.
Please let me know if my approach is correct or not.