User configured presence sessions never expire-app cannot toggle a user to Available from Busy

Andrew Omondi 246 Reputation points Microsoft Employee
2021-12-15T06:55:01.21+00:00

Testing with an application setting user presence I tried the following:
-In Teams, set my presence to Busy.
-In my application, set my presence to available (new session) with a timeout of 4h
-Wait 4h
-My presence never changes, even when the device I set it on goes idle.

According to the docs, user set states override application set ones, but this appears to be a case where the user set state never expires, so the application state will never be honored. This way it appears that a user who sets themselves to Busy can never be automatically moved out of busy by application logic.

Expected behaviour is that the user-supplied state will have a timeout, or that the application is able to force a presence state change.

Source from https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1188

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,682 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.
2,878 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 2,806 Reputation points Microsoft Vendor
    2021-12-28T12:49:37.417+00:00

    According to the precedence order mentioned in presence sessions, Busy has more precedence than Available. So you cannot override this precedence order with application. However you can override any presence session directly through UI.

    Thanks,

    Nivedipa


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    1 person found this answer helpful.
    0 comments No comments