Teams Presence information is now available via Graph API beta interface. It is fairly simply to test using Graph Explorer by calling /beta/me/presence.
Note: you will need to give a admin consent to these API calls. You can not do this with delegated user permissions.
You may want to refer for Presence API documentation in Docs.Microsoft.Com
When you start testing this with Graph Explorer, you are required to give permissions (use Modify Permissions in Graph Explorer)
You can also use /users/(user-id-guid)/presence to retrieve a specific user’s presence:
Principal Consultant and Microsoft MVP
"They call me Mr. Teams."
"Creating better worklife!"
Virtual Events, Meetings and Collaboration are big letters in the word cloud of what I do and consult daily.
My expertise area is Microsoft 365 / Microsoft Cloud , covering especially
- Microsoft Teams and extending & integrating Microsoft Teams between systems in and out of Microsoft 365
- Power Platform: (Power Automate, Power Virtual Agents, Power Apps & Dataverse for Teams
- SharePoint
- and tools that create a modern workplace solution and practices.
In my work I am also an adviser for customers so they can discover best benefits, gain best value & ROI out of chosen tools. I have 25+ years of experience in IT and worked with Office 365 since 2012.
I am a speaker in various community events like Microsoft Ignite (2019, 2020, 2021), Teams Nation (known before as TeamsFest), Microsoft 365 Virtual Marathon, Commsverse, CollabDays, SharePoint Saturdays, Power Platform community,... and the list goes on.
Community Events & User Groups I co-organize:
- Teams Nation Community Conference & Monthly Meetups
- Teams Community Finland (founder) #TeamsFi
Let's connect!
View all posts by Vesa Nopanen
5 thoughts on “Testing Microsoft Teams Graph Presence API”
I tried to call Getpresence method in .net , but it doesn’t recognize Presence
GraphServiceClient graphClient = new GraphServiceClient(authProvider);
var presence = await graphClient.Me.presence.Request().GetAsync ();
I tried to call Getpresence method in .net , but it doesn’t recognize Presence
GraphServiceClient graphClient = new GraphServiceClient(authProvider);
var presence = await graphClient.Me.presence.Request().GetAsync ();
LikeLike
Unfortunately I can’t help with .NET. I have been only using this via REST calls.
LikeLike
Is it possible to edit presence using old Skype API to set custom teams status messages?
LikeLike
Not to my knowledge.. Sorry. I think that would have come up earlier if that were possible.
LikeLike