Presence API and Teams "Focusing" status

Steve Clay 25 Reputation points
2023-03-15T16:22:27.0933333+00:00

Hello... why does the Presence API (either 1.0 or the Beta) not return the custom Teams status of "Focusing," as added by the MyAnalytics plugin? I just get "availability" and "activity" both set to "DoNotDisturb" for a user in "Focusing" status. Thanks!

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

Accepted answer
  1. HarmeetSingh7172 4,826 Reputation points
    2023-03-15T20:22:17.83+00:00

    Hello Steve Clay

    Thanks for reaching out!

    The user presence states are of two categories: user configured, and app configured. User configured states are those in which the user chooses their status. whereas app configured states are based on user activity. As far as I know, currently Presence API only supports a limited set of presence states which doesn't include App configured presence state "Focusing". When a user sets their status to "Focusing" using MyAnalytics plugin in Teams, it is a custom status that is not recognized by the presence graph API. As a result, the API returns "DoNotDisturb" which is closest matches to "Focusing" status. Refer this.

    Refer below links for better understanding:

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.