How to set presence status from MS Graph API

Bipin P 61 Reputation points
2020-11-30T10:50:54.207+00:00

In my application, I am using OAuth2.0 sign-in methods on top of that I am getting UserAccessToken. But for another user, my status still showing Offline Is there any method to set a presence via MS Teams Graph API??

e.g POST Me/Presence request In the body we can send UserId and status.

Note: My application website connects to MS Teams Graph via UserAccessToke (OAuth2.0 Sign In)- I am able to do most of the activities but on teams.microsoft.com website still showing my status is offline. Is there any way to make my status to online so other logged in people also came to know that I am online.

43558-image.png

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Deva-MSFT 2,271 Reputation points Microsoft Employee Moderator
    2020-11-30T12:24:49.673+00:00

    At this point, you can "Get' the user presence using Microsoft Graph API. Here's the documentation.


  2. Deva-MSFT 2,271 Reputation points Microsoft Employee Moderator
    2020-11-30T16:12:34.69+00:00

    As i updated above, at this point only the API supports GET only. If you wish this to be implemented then consider filing an Microsoft Uservoice. Being said that i remember a related uservoice filed already for this; you can consider upvoting it.

    0 comments No comments

Your answer

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