Presence status of user is not setting using Graph API

Prajakta Kenjale 41 Reputation points
2022-06-03T08:31:21.287+00:00

We are using presence/setPresence API as given in https://learn.microsoft.com/en-us/graph/api/presence-setpresence?view=graph-rest-1.0&tabs=http through Postman.

It is giving 200 Ok. However, it is not showing any change on MS Teams Client.

When I Change presence status from Teams, I am able to get the updated presence in Postman using https://learn.microsoft.com/en-us/graph/api/presence-get?view=graph-rest-1.0&tabs=http

I am using MS Teams only on my laptop and trying to update presence using postman using Graph API. I am not using MS Teams on multiple devices.

Please help me to understand why it is not updating using setPresence Graph API.

  1. Is there any precedence related issue
  2. Is the issue due to beta version for setPresence https://graph.microsoft.com/beta/users/<userId>/presence/setPresence and we are using V1 version to get presence https://graph.microsoft.com/v1.0/<userId>/presence
Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

6 answers

Sort by: Most helpful
  1. Prajakta Kenjale 41 Reputation points
    2022-06-22T13:28:01.25+00:00

    Hi,

    I am changing the status as per the table provided but still it does not work sometimes.
    I tried to change through postman also but still it does not work.

    When it works, it does not update the status immediately. It takes minutes sometimes to update the status.

    What could be the issue?

    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.