The presence subscription api limitation

Edward Zheng 61 Reputation points
2022-11-02T09:34:33.13+00:00

Hi guys.

We want to leverage Microsoft Teams Presence Subscription API to set up an App. After some investigation and PoC in our teams. We have some questions about this presence subscription API.

The presence subscription API was published two years ago according to this page, https://devblogs.microsoft.com/microsoft365dev/get-notified-of-presence-changes-the-microsoft-graph-presence-subscription-api-is-now-available-in-public-preview.

  1. Does the presence subscription project have a GA version or plan for this?
  2. Each subscription can include only 650 users, what if the org has more users, do you have any suggestions for this scenario?
  3. Each time a new user is added or removed then the single subscription must be deleted and created again. how to overcome this limitation?
  4. If one user in the list cannot be subscribed, then the whole subscription fails without knowing which user failed. How to overcome this limitation?

Could you please help answer those questions or forwarding to the related team?

Thanks.

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other

Answer accepted by question author

Prasad-MSFT 10,496 Reputation points Microsoft External Staff Moderator
2022-11-04T06:42:29.18+00:00
  1. Yes, the presence subscription is available in v1.0 as well as in beta. For getting single user's presence, you can subscribe to /communications/presences/{id} path and for getting multiple user's presence, you can subscribe to /communications/presences?$filter=id in ('{id}','{id}',…)
    Doc Ref: https://learn.microsoft.com/en-us/graph/api/resources/presence?view=graph-rest-1.0
    Sample code repo: https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/graph-change-notification

2.Currently we allow only subscribing as a user to another user's presence. In this model, if an app wants to use the subscription apis, they have to use some "dummy" users to subscribe to all the users's presence they are interested in, and aggregate that data.

3.No options currently for 3 and 4

Thanks,

Prasad Das


You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.