How to access a group calendar using Microsoft Graph Api?
Asked Answered
A

2

6

I'm trying to access a group calendar using the microsoft graph api as the application (I don't want to use delegate permissions).

If I request calendar events using the below I get the events for the user just fine.

https://graph.microsoft.com/v1.0/users/[emailAddress]/events

If I make a request to the following I get group information:

https://graph.microsoft.com/v1.0/groups/[groupId]/

If I make a request to this:

https://graph.microsoft.com/v1.0/groups/[groupId]/events

I get "Access is denied. Check credentials and try again." In azure portal, I've given my app service the following Application permissions:

Calendars.Read
Calendars.Read.Shared
Group.Read.All
User.Read.All

What am I missing?

Arillode answered 15/2, 2019 at 9:48 Comment(0)
S
4

Applications permissions to list events is currently not supported. Also, listing events using delegated permissions with a Personal accounts is not supported. Please refer to List Events documentation which has the details. You can also refer to known limitations of Graph here. A user voice on this feature request is also available here and you can upvote the same so that the product team can include into their plans.

Soloman answered 15/2, 2019 at 20:39 Comment(1)
User Voice does not exist any more. Can you update the link?Oligarchy
K
0

In addition to this answer, also ensure that the authenticating user is a member of the target group. This applies even if the user:

  • Is already set as an owner of the target group.
  • Already approved the Group.Read.All delegate permission.

Failing to do so will result in the same error message mentioned in the question.

Kudos answered 23/9 at 17:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.