question

52118764 avatar image
0 Votes"
52118764 asked CharlieChen-9294 answered

Possible limit to Presence subscription via Graph API

Hi,
I am trying to create an application that will subscribe to Teams Presence events using Graph API. I have seen that in general there are some limitations for the subscription for all the various resources as described in the following page: https://docs.microsoft.com/en-us/graph/webhooks

However it is not clear what happens with Teams Presence subscription. In the "Teams resource limitations" chapter only callRecords and chatMessages are mentioned. Is there any limitation on the number of Teams Presence subscription per application/ tenant etc? It would be really helpful to know these limitations.

microsoft-graph-teamwork
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sheena-MSFT avatar image
1 Vote"
Sheena-MSFT answered 52118764 edited

Hi @CostasSome-1307,

Currently a single Graph change subscription to Teams presence can be created. When we try to add more subscriptions then we get the conflict error "A subscription already exists. It must be deleted before another can be made".
You can raise a UserVoice for your specific scenario so that it could be considered for future implementation.

You may check a similar post for more information here

If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.




· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Sheena-MSFT ,

Thanks a lot for the prompt response. The reference link that you posted was also really helpful.

So to sum up it seems that the limit is one subscription per user, and each user can subscribe for up to 650 separate user presence entitites.

But what happens with the total number of presence subscriptions per tenant/application etc? Is the total amount of presence subscriptions of all users that belong to a specific tenant limited any further? So in theory could every user that belongs to a specific tenant subscribe for up to 650 separate presence entities (so in the extreme scenario the total number of subscriptions could reach :
number_of_users * 650 )?

0 Votes 0 ·
CharlieChen-9294 avatar image
0 Votes"
CharlieChen-9294 answered

We meet this same problem. Is there any way to make more subscriptions per tenant?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.