Hi,
Only a single Graph change subscription to Teams presence can be created. The second subscription fails with:
Status Code: Conflict
Microsoft.Graph.ServiceException: Code: ExtensionError
Message: Operation: Create; Exception:[Status Code: Conflict; Reason: A subscripton already exists. It must be deleted before a another can be made.]
There is workaround to subscribe to multiple users presence in a single subscription by setting the resource to:
Resource = $"communications/presences?$filter=id in ('{userId1}','{userId2}')"
However, this workaround is very limited because:
Each time a user needs to be added or removed then the single subscription must be deleted and created again. Note that it is not possible to update the subscription with a new resource containing the new list of users. MS Graph silently ignores this update.
If one user in the list cannot be subscribed, then the whole subscription fails without knowing which user failed.
The number of users that can be subscribed this way is limited.
Is there another way to subscribe to multiple users presence effectively?
Are there any plans to allow multiple presence subscriptions ?
Are there any plans to allow an application (not delegated user) permission to subscribe to presence?
Thanks,
Ron