It doesn't look like the Get Presence work with Application permissions.
Even though they have an API for it., they dont have any documentation on how to use it... https://graph.microsoft.com/Presence.ReadWrite.All
presence-get Graph API
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a Presence monitoring application that was recently using Slack, however, we migrated to Teams, and I am working on the integration to Microsoft Teams. I am then trying to update the Presence of each user with change notifications however before I do all that I wanted to confirm that the Presence API gives us all the information needed.
Having said this, after I set up my application with the Application permissions, and got the access token, via Postman, I got the following response:
I am using Application permissions and not Delegated permissions because, we are using another login system, and it doesn't make sense to switch the way we log in just to integrate Teams with this app. Is this not yet supported or am I doing something wrong here?
It doesn't look like the Get Presence work with Application permissions.
Even though they have an API for it., they dont have any documentation on how to use it... https://graph.microsoft.com/Presence.ReadWrite.All
presence-get Graph API
Sadly it seems that application permissions are not supported when retrieving presence information from the Graph API.
There's a post on the Tech Community about this at https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/graph-api-presence-should-support-application-permissions/idi-p/2276109. It would be great if you could Upvote to help the idea gain some traction!
Without the ability to read permissions trough Application permission, we have implemented the feature using delegated permissions, but users are not happy about having to log in to see presence.
@Valerio Cietto @Kurt Debono @Kurt Debono @Daniel Arkley
Get User Presence API with Application Permission now available in Graph v1.0.
See this comment from December 21, 2023. The Graph API change log is not yet updated.
therefore, following Api should work now with application permission.
https://graph.microsoft.com/v1.0/users/6e7b768e-07e2-4810-8459-485f84f8f204/presence
https://graph.microsoft.com/v1.0/communications/presences/6e7b768e-07e2-4810-8459-485f84f8f204
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.