Microsoft-graph-docs: Subscriptions for resource calendars

Created on 28 Nov 2018  Â·  10Comments  Â·  Source: microsoftgraph/microsoft-graph-docs

Hi,
is it also possible to create a subscription to the exchange calendar of an exchange-resource (meeting room calendar)? Despit full delegated rights on that resource calendar, I receive an "ExtensionError" with Message "Operation: Create; Exception: [Status Code: Forbidden; Reason: Forbidden]".

Thanks in advance


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

outlook events feature

Most helpful comment

When using application permissions in this way, ie to allow an application to create a subscription to a rooms calendar, is there a way to granularly decide which calendars an app has access to? for example I want to allow the application to have access to all room calendars but not to any users calendars?

All 10 comments

It is possible to create a subscription to a shared calendar using application permissions (app-only) with Calendars.Read, but not delegated user permissions. If you would like us to prioritize this scenario, please submit a user voice request. https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/category/101632-microsoft-graph-o365-rest-apis

Re-opening. We should make it clearer in these docs that only app-only is supported for shared calendar.

Error: I am unable to create a subscription as it throws me error as shown below, can you please help?
Code: InvalidRequest Message: Subscription validation request failed. Must respond with 200 OK to this request. Inner error

Can we clarify this in the docs plesae?

@jthake-msft , PR #3656 will contain the doc updates in the subscription CRUD topics to clarify the permissions that support subscribing to Outlook contacts, events, or messages in user mailboxes.

Basically:

  • The Outlook sharing permissions (Contacts.Read.Shared, Calendars.Read.Shared, Mail.Read.Shared, and their read/write counterparts) allow reading or writing contacts, events, and messages in shared or delegated folders. These sharing permissions do not support subscribing to change notifications on items in shared or delegated folders.
  • Instead, use the corresponding delegated permission to subscribe to items in folders in the signed-in user's mailbox.
  • Or, use the corresponding application permission to subscribe to items in any user's folders and mailbox in the tenant.

@jthake-msft how do we create a subscription to a shared calendar using application permissions (app-only) with Calendars.Read, but not delegated user permissions. ? can we change resource parameter like below ?

{
   "changeType": "created,updated",
   "resource": "users/[email protected]/events",
   "notificationUrl": "https://webhook.azurewebsites.net/api/send/myNotifyClient",   
   "expirationDateTime":"2016-11-20T18:23:45.9356913Z",
   "clientState": "secretClientValue"
}

When using application permissions in this way, ie to allow an application to create a subscription to a rooms calendar, is there a way to granularly decide which calendars an app has access to? for example I want to allow the application to have access to all room calendars but not to any users calendars?

@asith-w , @MarkRBM , would you please post your questions on stackoverflow, making sure to tag your posts with [microsoft-graph]?
There's a better chance your questions would get answers there.

There really should be a way to subscribe to only shared calendars without requiring read permissions to every single calendar in the tenant. Since there already is a Calendars.Read.Shared permission, I can set up this behavior myself by polling the calendars I'm interested in - why can't I also be notified of changes in these calendars using the same permission?

This issue will be closed because we only accept document content feedback through this system. This system is not intended for service issues, questions, or service feedback.

If you have service issues and want to raise a support request, and if one of the following applies:

  • You are an administrator of an active Azure subscription - raise a new technical support ticket at the Azure Admin Center.
  • You are an administrator of an Office 365 or Microsoft 365 tenant - raise a new service request using the Support menu in the Microsoft 365 Admin Center.

If you would like to ask a question about Microsoft Graph, please visit Stack Overflow and ask your questions there using the [microsoft-graph] tag.

If you have suggestions or feedback on Microsoft Graph, please submit this at Microsoft Graph Uservoice.

If you are looking to provide feedback or raise issues on Microsoft Graph SDKs, please visit the respective Github repo.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bijithbalan picture bijithbalan  Â·  4Comments

r3dh0t picture r3dh0t  Â·  4Comments

gi-joe-moto picture gi-joe-moto  Â·  3Comments

andrewfabrizi picture andrewfabrizi  Â·  3Comments

tfrancois picture tfrancois  Â·  3Comments