Could I get the Teams user's status messages by API?

%3CLINGO-SUB%20id%3D%22lingo-sub-1507605%22%20slang%3D%22en-US%22%3ECould%20I%20get%20the%20Teams%20user's%20status%20messages%20by%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1507605%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3ECould%20Microsoft%20Graph%20API%20or%20other%20alternative%20way%20to%20get%20the%20Teams%20user's%20status%20messages%20and%20Online%20status%2C%20or%20activity%20log%20about%20those%3F%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Ethe%20message%20users%20usually%20set%20%22Out%20of%20office....%22%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508256%22%20slang%3D%22en-US%22%3ERe%3A%20Could%20I%20get%20the%20Teams%20user's%20status%20messages%20by%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508256%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F721752%22%20target%3D%22_blank%22%3E%40Eric_Chen%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20you%20can.%20The%20API%20is%20still%20in%20beta%20but%20already%20very%20promising.%3CBR%20%2F%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%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fpresence%3Fview%3Dgraph-rest-beta%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EI%20tested%20it%20myself%20and%20it%20worked%20for%20me.%3C%2FP%3E%3CP%3EI%20hope%20that%20helps.%3C%2FP%3E%3CP%3ECheers%3CBR%20%2F%3ERolf%3CBR%20%2F%3E%3CBR%20%2F%3E%23MCT%20%23LearnWithRolf%20%23TheCloud42%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1897123%22%20slang%3D%22en-US%22%3ERe%3A%20Could%20I%20get%20the%20Teams%20user's%20status%20messages%20by%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1897123%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F659330%22%20target%3D%22_blank%22%3E%40Rolf-42%3C%2FA%3E%26nbsp%3Blooks%20like%20this%20provides%20presence%20(Available%20vs%20away)%20but%20not%20the%20status%20message%20(At%20lunch%20until%202pm).%26nbsp%3B%20Would%20love%20to%20be%20able%20to%20get%20the%20message.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlternatively%2C%20can%20we%20get%20their%20outlook%20out%20of%20office%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Could Microsoft Graph API or other alternative way to get the Teams user's status messages and Online status, or activity log about those?

the message users usually set "Out of office...."

2 Replies

Hello @Eric_Chen

 

Yes you can. The API is still in beta but already very promising.
https://docs.microsoft.com/en-us/graph/api/resources/presence?view=graph-rest-beta 
I tested it myself and it worked for me.

I hope that helps.

Cheers
Rolf

#MCT #LearnWithRolf #TheCloud42

@Rolf-42 looks like this provides presence (Available vs away) but not the status message (At lunch until 2pm).  Would love to be able to get the message. 

 

Alternatively, can we get their outlook out of office?