Need Help with extracting Microsoft Teams Presence Data

Danish Rizvi 20 Reputation points
2025-07-02T18:59:11.7766667+00:00

I’m trying to extract Microsoft Teams presence status for each employee in the company, specifically to track how often and how long someone’s status is Active, Away, In a Meeting, Be Right Back, etc.

I attempted to use the Graph API endpoint: https://graph.microsoft.com/v1.0/me/presence

However, the response returns a blank string. Other endpoints like Call Records and Chat Messages are working as expected.

Someone please guide me if there is a different or elevated permission required to retrieve presence data for all users?

Microsoft Teams | Development
0 comments No comments
{count} votes

Accepted answer
  1. Teddie-D 2,020 Reputation points Microsoft External Staff Moderator
    2025-07-03T05:51:35.8533333+00:00

    Hi @Danish Rizvi 

    Thank you for posting your question in the Microsoft Q&A forum. 

    Based on my research, the Microsoft Graph API allows you to retrieve a user's current presence status using: 

    GET https://graph.microsoft.com/v1.0/users/{userID}/presence
    

    or

    GET https://graph.microsoft.com/v1.0/communications/presences/{userID}
    

    Currently, there is no such Graph API available to track how often and how long someone’s status is. 
    To retrieve presence information for users other than yourself, your application must be granted application-level permissions, such as Presence.Read.All or Presence.ReadWrite.All, through Microsoft Entra ID.   
    User's imageYou can read more at Microsoft Graph permissions reference - Microsoft Graph | Microsoft LearnUser's image

    I hope this helps. 
    If you have further concerns, please feel free to reach me out.


    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.