Facings issues in fetching Multiple users Subscription for Presence MS Graph API (For Microsoft Teams)

Muhammad Hamza 1 Reputation point
2021-12-21T07:35:22.793+00:00

I am using MS Graph API for fetching the user's presences, now i am stuck at fetching multiple subscriptions. e.g. If i have 10 users in my teams tenant, i want to get subscriptions for their presences, so that when someone's presence changed i will get a subscription. The method i am using is working fine for single user. When i give single user id in resources, subscription works fine but for multiple users, am unable to use the filter clause which mentioned in many documents. Now now i need to add "/communications/presences?$filter=id in ({id},{id}…) (multiple users)" but am confused as it gives me invalid filter clause error if i add filter('') in it.159208-teamsissue.png

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

Your answer

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