MS Teams Presence Sync Transitions

Tenneti Sudheer Kumar 20 Reputation points
2026-07-02T07:31:34.4033333+00:00

I want to follow up with a couple of questions in context to this discussion
https://learn.microsoft.com/en-gb/answers/questions/5933754/ms-teams-presence-sync-transitions

When using setUserPreferredPresence, we have an expiration time. But since user status changes have the highest preference, in a case where no status changes are made after the setUserPreferredPresence call, will the status (for example DND) continue after the expiration or does it reset?

Secondly, I want to know about the situations when we try to change the status using setPresence. In a scenario where we change the status of MS Teams from available to busy, MS teams pushes this event to the subscriptions. In this specific case, is there a way to identify if a particular client has generated this event? In this case, we may not want to conusme this event, but we are interested in consuming change of statuses that happen through any other route apart from our application itself.

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs


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.