Forum Discussion
Amiryaari
Jan 30, 2024Copper Contributor
Allowing calendar graph access through API but not with outlook client
Hello everyone, hope I can find an answer to our issue. We have an app configured on azure to allow members of our organization to edit a shared calendar through API. This works fine. The issue...
Amiryaari
Jan 30, 2024Copper Contributor
VasilMichev
I'm running API calls like PATCH https://graph.microsoft.com/v1.0/me/calendars/[outlook_calendar_id]/events/[event_id] to update an event.
The users get edit access to that calendar.
VasilMichev
Jan 30, 2024MVP
So you're using the Graph API, in the delegate permissions model? That does require that the users have been granted access to the shared calendar, and depending on how you do that, it might cause the Calendar to appear in Outlook.
Have you considered using application permissions instead?
Have you considered using application permissions instead?
- AmiryaariFeb 11, 2024Copper Contributor
Thank you so much for your reply.
I was using the delegate model until now, but I see that the application permission model is what I need.The question I have now is how I would set it up on the platform I am using. For the delegate permission model I used Oauth2 User-Agent flow. These are the options I have:
- VasilMichevFeb 11, 2024MVPGenerally speaking, you would be using the client credentials flow: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow