I cannot identify the user by the presence feature

Occasional Contributor

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? 

 

2 Replies

@Developers_Invillia, It should return ID. 
Can you please share your complete endpoint url.

@Abhijit_MSFT ,

 

The refuse that I am consumed is in beta through a Webhook, after validating the Token, I start to receive the presence data of the users I sent, but without the user ‘id’ as I mentioned here in the publication.

 

The operation is as follows. I have a link on the X server and after Token validation, the data that comes from WebHook does not have an ID, as I mentioned in the post here. The URL I'm consuming is as follows:

 

 

Captura de tela de 2020-07-20 10-13-05.png

Link: https://docs.microsoft.com/pt-br/graph/api/resources/webhooks?view=graph-rest-beta