Microsoft Tech Community Live:  Microsoft Teams Edition
November 09, 2021, 08:00 AM - 12:00 PM (PST)

I cannot identify the user by the presence feature

%3CLINGO-SUB%20id%3D%22lingo-sub-1527313%22%20slang%3D%22en-US%22%3EI%20cannot%20identify%20the%20user%20by%20the%20presence%20feature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527313%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22TextRun%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%20class%3D%22NormalTextRun%20%20BCX0%20SCXW79127888%22%3EHello%2C%20I%20have%20the%20following%20failure%20to%20receive%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22TextRun%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%20class%3D%22NormalTextRun%20%20BCX0%20SCXW79127888%22%3EPresence%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22TextRun%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%20class%3D%22NormalTextRun%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(%3C%2FSPAN%3E%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fpresence%3Fview%3Dgraph-rest-beta%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%3E%3CSPAN%20class%3D%22TextRun%20Underlined%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%20class%3D%22NormalTextRun%20%20BCX0%20SCXW79127888%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fpresence%3Fview%3Dgraph-rest-beta%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20class%3D%22TextRun%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%20class%3D%22NormalTextRun%20%20BCX0%20SCXW79127888%22%3E)%20from%20several%20users%20related%20to%20WebHook%2C%20where%20presence%20updates%20are%20coming%20with%20empty%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22TextRun%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%20class%3D%22NormalTextRun%20%20BCX0%20SCXW79127888%22%3Euser%20id%2C%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22TextRun%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%20class%3D%22NormalTextRun%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efollow%20the%20request%20to%20start%20the%20resource%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20%20BCX0%20SCXW79127888%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%20%22changeType%22%3A%20%22updated%22%2C%20%20%0A%0A%22notificationUrl%22%3A%20%22https%3A%2F%2FmyApplication%2Fpresence%22%2C%20%20%0A%0A%22resource%22%3A%22%2Fcommunications%2Fpresences%2F%3F%24filter%3Did%20in('IdExample1%2C'IdExample2'%2C%20'IdExample3')%22%2C%20%0A%0A%22expirationDateTime%22%3A%20%222020-07-18T11%3A00%3A00.0000000Z%22%2C%20%20%0A%0A%22clientState%22%3A%20%22SecretClientState%22%20%20%0A%0A%7D%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22EOP%20%20BCX0%20SCXW79127888%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW35133367%20BCX0%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3EThe%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Etype%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Eof%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eresponse%20I%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Ereceive%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ein%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Emy%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Eapplication%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%2C%20I%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Ecannot%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Eidentify%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Ethe%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22SpellingError%20SCXW35133367%20BCX0%22%3Euser%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW35133367%20BCX0%22%3E%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20SCXW35133367%20BCX0%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3Eresource%20data%20%7B%20%20%0A%0A'%40odata.type'%3A%20'%23Microsoft.Graph.presence'%2C%20%0A%0A%20'%40odata.id'%3A%20'communications%2Fpresences%3F%24filter%3Did%2Bin%2B(%2527e21fd683-c6b2-4210-9fe4-f9a571f8a4dd%2527%252c%252780252933-2ee1-4eaf-b14d-bc26f02b223f%2527%252c%25274f679896-3219-4747-bb5e-84548a9c2b7c%2527%252c%2B%25279de21133-1a95-4cac-a006-58a9d9f5a009%2527)'%2C%20%20%0A%0Aid%3A%20null%2C%20%20%0A%0Aactivity%3A%20'Available'%2C%20%0A%0A%20availability%3A%20'Available'%20%7D%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%26nbsp%3Bthe%26nbsp%3Bway%26nbsp%3BI%26nbsp%3Bam%26nbsp%3Breceiving%26nbsp%3Bthis%26nbsp%3Bpresence%26nbsp%3Bdata%26nbsp%3Bcorrect%3F%26nbsp%3BOr%26nbsp%3Bis%26nbsp%3Bthere%26nbsp%3Banother%26nbsp%3Bway%26nbsp%3Bto%26nbsp%3Breceive%26nbsp%3Bthis%26nbsp%3Bdata%26nbsp%3Bwith%26nbsp%3Bthe%26nbsp%3Buser%26nbsp%3BID%26nbsp%3Bentered%3F%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1527313%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532429%22%20slang%3D%22en-US%22%3ERe%3A%20I%20cannot%20identify%20the%20user%20by%20the%20presence%20feature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532429%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722820%22%20target%3D%22_blank%22%3E%40Developers_Invillia%3C%2FA%3E%2C%26nbsp%3BIt%20should%20return%20ID.%26nbsp%3B%3CBR%20%2F%3ECan%20you%20please%20share%20your%20complete%20endpoint%20url.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533099%22%20slang%3D%22en-US%22%3ERe%3A%20I%20cannot%20identify%20the%20user%20by%20the%20presence%20feature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533099%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F322587%22%20target%3D%22_blank%22%3E%40Abhijit_MSFT%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20refuse%20that%20I%20am%20consumed%20is%20in%20beta%20through%20a%20Webhook%2C%20after%20validating%20the%20Token%2C%20I%20start%20to%20receive%20the%20presence%20data%20of%20the%20users%20I%20sent%2C%20but%20without%20the%20user%20%E2%80%98id%E2%80%99%20as%20I%20mentioned%20here%20in%20the%20publication.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20operation%20is%20as%20follows.%20I%20have%20a%20link%20on%20the%20X%20server%20and%20after%20Token%20validation%2C%20the%20data%20that%20comes%20from%20WebHook%20does%20not%20have%20an%20ID%2C%20as%20I%20mentioned%20in%20the%20post%20here.%20The%20URL%20I'm%20consuming%20is%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Captura%20de%20tela%20de%202020-07-20%2010-13-05.png%22%20style%3D%22width%3A%20655px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206362iFA947F115CA4485B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Captura%20de%20tela%20de%202020-07-20%2010-13-05.png%22%20alt%3D%22Captura%20de%20tela%20de%202020-07-20%2010-13-05.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ELink%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fpt-br%2Fgraph%2Fapi%2Fresources%2Fwebhooks%3Fview%3Dgraph-rest-beta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fpt-br%2Fgraph%2Fapi%2Fresources%2Fwebhooks%3Fview%3Dgraph-rest-beta%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
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