Forum Discussion

Developers_Invillia's avatar
Developers_Invillia
Copper Contributor
Jul 16, 2020

I cannot identify the user by the presence feature

Hello, I have the following failure to receive Presence (https://docs.microsoft.com/en-us/graph/api/resources/presence?view=graph-rest-beta) from several users related to WebHook, where presence updates are coming with empty user id, follow the request to start the resource: 

 

 

{ "changeType": "updated",  

"notificationUrl": "https://myApplication/presence",  

"resource":"/communications/presences/?$filter=id in('IdExample1,'IdExample2', 'IdExample3')", 

"expirationDateTime": "2020-07-18T11:00:00.0000000Z",  

"clientState": "SecretClientState"  

}  

 

 

The type of response I receive in my application, I cannot identify the user: 

 

 

resource data {  

'@odata.type': '#Microsoft.Graph.presence', 

 '@odata.id': 'communications/presences?$filter=id+in+(%27e21fd683-c6b2-4210-9fe4-f9a571f8a4dd%27%2c%2780252933-2ee1-4eaf-b14d-bc26f02b223f%27%2c%274f679896-3219-4747-bb5e-84548a9c2b7c%27%2c+%279de21133-1a95-4cac-a006-58a9d9f5a009%27)',  

id: null,  

activity: 'Available', 

 availability: 'Available' } 

 

 

Is the way I am receiving this presence data correct? Or is there another way to receive this data with the user ID entered? 

 

Resources