Maximum subscription limitation for Teams presence resource: /communications/presences/{id} from MS Graph API

Sushma Patlolla (supatlol) 1 Reputation point
2022-08-25T06:09:57.067+00:00

We are trying to create webhook subscriptions to the resource /communications/presences/{id} , to get presence change notifications for all users in an org.

The request body we are using to create a subscription:

----------

// Create the subscription  
const subscription = await client.api('/subscriptions').create({  
  changeType: 'updated',  
  notificationUrl: `${notificationHost}/listen`,  
  resource: '/communications/presences/0c2ffe06-6683-40a4-b46b-adbxxxxx',  
  clientState: process.env.SUBSCRIPTION_CLIENT_STATE,  
  includeResourceData: true,  
  encryptionCertificate: certHelper.getSerializedCertificate(  
    process.env.CERTIFICATE_PATH  
  ),  
  encryptionCertificateId: process.env.CERTIFICATE_ID,  
  expirationDateTime: new Date(Date.now() + 3600000).toISOString(),  
});  

----------

We were looking into the maximum subscription quotas for Teams based resources here: , but it does not mention the limit for the Teams presence resource: /communications/presences/{id} .

Is there is a limit on number of webhook subscriptions we can create for Teams Presence resource, what is it if applicable?

Any help is appreciated. Thanks!

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

1 answer

Sort by: Most helpful
  1. ShivaniRai-MSFT 2,731 Reputation points
    2022-08-25T10:21:55.487+00:00

    Hi @SushmaPatlollasupatlol-2963 ,

    As per this Microsoft Documentation, we can subscribe to a maximum number of 650 users by using /communications/presences?$filter=id in ({id},{id}...). The {id} represents a user ID GUID. However could not find any documentation on limit on number of webhook subscriptions for Teams Presence resource.

    Please check similar post: https://learn.microsoft.com/en-us/answers/questions/122525/graph-change-notifications-for-teams-presence-is-v.html

    If you want you can create a User Voice for the same to add subscription limitation in the documentation.

    Hope this helps.

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