Forum Discussion
MS Graph API: set presence "Away" not working if MS Teams Client running
- Dec 15, 2021
relkniw - According to the precedence order mentioned in presence sessions, Available has more precedence than Away. So you cannot override this precedence order with app configuration. However you can override any presence session directly through UI.
Thanks,
Meghana
----------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
relkniw - Could you please share more details and repro steps of this issue.
- relkniwDec 15, 2021Brass Contributor
We are developing an Windows Service in c# and use the c# Graph SDK.
We are setting the presence of Teams user like described here in the c# example: https://docs.microsoft.com/en-us/graph/api/presence-setpresence?view=graph-rest-1.0&tabs=csharp
If a user is logged in to MS Teams with his MS Teams client, and status is "Available", status can not be set to "Away". He stays "Available".
If the user is not logged in to MS Teams ans his status is "Offline", his status can be set to "Away".Regards
Gerd
- Meghana-MSFTDec 15, 2021Microsoft
relkniw - According to the precedence order mentioned in presence sessions, Available has more precedence than Away. So you cannot override this precedence order with app configuration. However you can override any presence session directly through UI.
Thanks,
Meghana
----------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.