Get a user's presence Microsoft Graph Api

murphy 1 Reputation point
2022-11-21T02:10:03.33+00:00

Hi,

I would like to get the information about a user's presence in MS Teams. Is there a way to make this happen using a graph call?

Thank you very much in advance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,327 questions
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
726 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
882 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. HarmeetSingh7172 4,786 Reputation points
    2022-11-21T02:30:18.95+00:00

    Hello @murphy

    Thanks for reaching out!

    Get presence Graph API doesn't support Application Permissions yet. Hence, it is not possible to achieve this using Graph API currently.

    262280-gp1.png

    Since this feature/functionality is presently not available for Application Permissions with Microsoft Graph API, you can upvote an existing feature request idea, so that it can get more upvotes. This feature request portal is monitored by Microsoft team, and they make the enhancements to Microsoft Graph APIs based on the number of upvotes/API in demand. I will also upvote for you.

    Related article: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/graph-api-presence-should-support-application-permissions/idi-p/2276109

    Hope this helps.

    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

  2. CarlZhao-MSFT 23,361 Reputation points
    2022-11-21T07:09:55.723+00:00

    Hi @murphy

    You can call the presence API endpoint to get a user's presence in Teams.

    1.Get the presence information for a specific user (requires Presence.Read.All delegated permission).

    262420-image.png

    2.Get the presence information for multiple users.

    262494-page17.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.