How to get the current call info of the user in MS Teams

Luis Manuel Rodriguez Redondo 20 Reputation points
2024-08-26T15:46:52.9366667+00:00

We want to develop a Teams app that shows information related to the person the user is calling in real time. The idea is, every time there is a change in the user's status, check if there is also an active call, get the ID of the call, retrive the ID of the person the user is talking to, and look for information related to this person in a custom database to show it to the user.

Is there a way using MS Graph to check if the user is in a call at the moment of the request?

Microsoft Teams | Development
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

Accepted answer
  1. Prasad-MSFT 9,061 Reputation points Microsoft External Staff Moderator
    2024-08-27T05:29:01.5933333+00:00

    To check if a user is currently in a call, you can use the presence endpoint to get the user's presence information. This endpoint provides details about the user's current activity, such as whether they are in a call or available.
    Ref: https://learn.microsoft.com/en-us/graph/api/presence-get?view=graph-rest-1.0&tabs=http

    However, getting the ID of the call, retrieving the ID of the person the user is talking to is not feasible.

    1 person found this answer helpful.

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.