Search code examples
microsoft-graph-apioutlook-restapi

Sharing a calendar with another user via the Microsoft Graph API


I'm working on an application that does OAuth authorization on behalf of multiple users. My application wants to be able to create a calendar for user A and then share that calendar as read only to user B. It will then create events on that calendar so that they appear for user A as read/write and for user B as read only.

Obviously the Microsoft Graph API supports creating a calendar and putting events on it. My question pertains to the sharing part.

Does the Microsoft Graph API (or the Outlook 365 REST API) support sharing a calendar from one user to another user? I wouldn't want user B to receive the typical email that announces that user A shared a calendar with them. After creating the calendar under user A's account, I'd want to use user A's credentials to set up the sharing permission to user B. Then I would use user B's credentials to add the shared calendar to their list of calendars so that they see it in the Outlook 365 calendar interface.

I've read through a lot of the documentation and have been playing around with a prototype, but I can't find where this use case is supported.


Solution

  • I'm afraid this isn't possible to do via Microsoft Graph. The scenario seems reasonably straight forward, I recommend visiting the UserVoice and adding this suggestion.