Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Create subscription to a group conversation using microsoft graph api

I would like to create a subscription to a user’s group conversation.
In order to do so, I have an api call to https://graph.microsoft.com/v1.0/subscriptions with the following payload –

{
    "changeType": "created, updated",
    "clientState": "something",
    "expirationDateTime": "2022-11-04T13:29:33.988006Z",
    "notificationUrl": "https://some.com",
    "resource": "groups('{id}')/conversations"
}

But I am getting this error code (400 status code) –
Subscription to a group's 'conversations' is not supported with Application-level permissions.

According to the docs here – https://learn.microsoft.com/en-us/graph/api/resources/conversation?view=graph-rest-1.0
I should be able to do so, however, I get that error (using indeed, application permissions, and I cannot use user delegated permissions for my purposes)…

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

According to the documentation, it’s not possible to create a subscription for conversation resource with application permissions.

enter image description here

No workaround right now if you cannot use user delegated permissions.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading