Forum Discussion

Blizth's avatar
Blizth
Copper Contributor
Feb 02, 2021
Solved

Setting presence using api

Hi ๐Ÿ™‚ I'm developing a react app for Teams and I would like to ask how to set user presence in Teams. My main goal is to make 2-way state synchronization between users in my system and users in Teams. In the GraphAPI I had found only the way to get user presence, but not to change it. I have also tried tinkering a bit with this PUT route (https://presence.teams.microsoft.com/v1/me/forceavailability) but without big success. Is there a way to achieve it?

 

Regards 

Bartล‚omiej

  • Hi Blizth,

    No, there is no way to achieve the desired behavior, You can get user presence but can't modify it by using graph API, sdk or with any other back end library. This won't be implemented in the near future. It's by design.

     

  • No, there is no way to achieve the desired behavior, You can get user presence but not modify it using graph API. This is by design. 

    • Blizth's avatar
      Blizth
      Copper Contributor

      Manish-MSFTthank you for your response ๐Ÿ™‚ Are there any other ways to manage the presence of Teams users, but without using graph api, like some kind of backend library, sdk?

      And the second question. When you said that this is not achievable by design, you meant right now or are there any plans for the future to add this feature? Thank you for your time ๐Ÿ™‚

      • Jagadeesh-MSFT's avatar
        Jagadeesh-MSFT
        Icon for Microsoft rankMicrosoft

        Hi Blizth,

        No, there is no way to achieve the desired behavior, You can get user presence but can't modify it by using graph API, sdk or with any other back end library. This won't be implemented in the near future. It's by design.

         

Resources