Notifications for new user chats

Devis Lucato 1 Reputation point Microsoft Employee
2022-06-01T02:42:55.94+00:00

Whenever someone starts messaging me, I would like to receive a notification "new chat created", so that I can subscribe to that specific chat via https://graph.microsoft.com/v1.0/subscriptions with resource="/chats/ID/messages".

Is it possible to be notified when someone starts a new chat? I tried subscribing to the resource /chats/getAllMessages?model=A but I don't have sufficient permissions, and I'd like to scope the subscription only to my chats, not the entire organization, something like resource = /me/chats.

Any suggestion?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,733 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramjot Singh 861 Reputation points Microsoft Employee
    2022-06-01T21:11:28.02+00:00
    0 comments No comments