Microsoft Graph: Presence API with Application Permission not working

Kurt Debono 6 Reputation points
2021-06-17T06:46:29.607+00:00

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:

106476-image.png

106457-image.png

106466-image.png

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?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,613 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,855 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Frederik Stapelfeld 6 Reputation points
    2021-07-12T09:35:56.02+00:00

    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

    113799-image.png

    1 person found this answer helpful.
    0 comments No comments

  2. Daniel Arkley 6 Reputation points
    2021-08-03T01:12:38.307+00:00

    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!

    1 person found this answer helpful.
    0 comments No comments

  3. Valerio Cietto 0 Reputation points
    2023-04-18T07:49:20.58+00:00

    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.

    0 comments No comments

  4. awijekoon 950 Reputation points Microsoft Vendor
    2023-12-24T23:33:32.7866667+00:00

    @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.

    0 comments No comments