0
votes

In delegated API permission mode, we are able to get events () from RoomMailBox calendar but not subscribe for notifications (webhooks) on events changes.

Each time we tried to create notification channel (https://graph.microsoft.com/v1.0/subscriptions) we got an error :

"error": {
      "code": "ExtensionError",
      "message": "Operation: Create; Exception: [Status Code: Forbidden; Reason: Access is denied. Check credentials and try again.]",
      "innerError": {
        "request-id": "XXXXXXXXXXXXXXXX",
        "date": "XXXXXXXXXXXXX"
      }
    }

Moreover, we have full access on RoomMailBox by using user account we used on delegated mode (user account impersonated).

If we try it by using Application permission mode, it's working, we got a subscription channel. Everything is OK.

Could you tell if there is a way to subscribe RoomMailBox (actually it seems you just support UserMailbox & SharedMailBox) calendar events notifications in delegated API permission mode ?

1

1 Answers

1
votes

It's a known limitation of create notification API currently.

Delegated user permissions are not allowed to create a subscription to a shared calendar.

Only application permissions (app-only) are possible.

If you need it to be provided, please submit a user voice request.

See a previous discussion here.