3
votes

I couldn't find a way to create new subscription to multiple resources using the Microsoft graph API: https://developer.microsoft.com/en-us/graph/docs/concepts/webhooks

For instance, I would like to create a new subscription to all mailboxes that are related to userPrincipalName that startsWith 'dev': /users/[email protected]/messages, /users/[email protected]/messages [email protected]

Sample request:

{ "changeType": "created", "notificationUrl": "notifurl", "resource": "", "expirationDateTime":"2018-10-10T18:23:45.9356913Z", "clientState": "secretClientValue" }

Can I create it? Thanks

1

1 Answers

2
votes

No. You would need to create a subscription per mailbox. The resource parameter does not support wildcards or multiple values.