Is it possible to set presence status text using graph api?

Amir Sohail 416 Reputation points
2021-12-23T06:11:13.367+00:00

I hope all of you are feeling well!

I want to set status text from graph API using user Azure id so is it possible or not if possible then help me I will be very thank full.
Like...
159909-set-text.jpg

159981-status-text.jpg

THANKS in advance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,538 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,408 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,494 questions
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,691 Reputation points
    2021-12-23T07:37:03.173+00:00

    Hi @Amir Sohail • Thank you for reaching out.

    This cannot be done via graph API as of now. Currently, the parameters mentioned below are the only supported parameters in the body of setPresence call ( POST https://graph.microsoft.com/beta/users/object_id_of_user/presence/setPresence ). Also, this call is supported under the Application context only and not under the user context.

    • sessionId
    • availability
    • activity
    • expirationDuration

    Read more: https://learn.microsoft.com/en-us/graph/api/presence-setpresence?view=graph-rest-1.0&tabs=http

    I would suggest you post this idea at User Voice portal, which is monitored by the product group for feature enhancements.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Amir Sohail 416 Reputation points
    2021-12-23T08:47:39.487+00:00

    @Vasil Michev please help in the above question if it is possible.
    Thanks

    0 comments No comments

  2. R Spruijt 1 Reputation point
    2023-12-04T20:35:19.66+00:00
    0 comments No comments

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.