Dec 13 2021 12:58 AM
Hello everybody,
we use the MS Graph API to sync presence stati of 3rd party app with MS Teams status. We now run into the problem that we can not set the MS Teams Status of a user to "Away" during the MS Teams Client of that user is running. If we close the MS Teams Client we can set the status of the user to "Away".
Any ideas how to set the status to "Away" even if the user is logged in at MS Teams?
Thanks.
Regards
Gerd
Dec 13 2021 05:43 AM
@relkniw - Could you please share more details and repro steps of this issue.
Dec 15 2021 05:36 AM - edited Dec 15 2021 05:37 AM
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
Dec 15 2021 08:13 AM
Solution@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.
Dec 15 2021 08:13 AM
Solution@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.