Microsoft teams presence indicator won't update immediately

Waseemraj Mulla (wamulla) 0 Reputation points
2023-05-06T06:31:39.3133333+00:00

Hello team, we are using WebEx call integration in the Microsoft teams and observed the following behavior.

  1. When we go on a call from the Webex app, the expected result in the MS Teams presence icon would be updated to "In a call" from "Available". The presence flow sometimes works immediately, and sometimes takes a few seconds, and minutes and may not update also for an hour. For this implementation, we have used the setPresence graph client API. Here, we are not sure whether our request has reached the MS team's server and updates the presence quickly or if is there any delay for a reason.
  2. How can we get the response code and identify the time taken to complete the API request when we use graphClient setPresence/setUserPreferredPresence APIs?

Thank you.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,150 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,885 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LiweiTian-MSFT 14,850 Reputation points Microsoft Vendor
    2023-05-08T07:10:42.0266667+00:00

    Hi @Waseemraj Mulla (wamulla)

    Presence not updating in time can be due to a number of factors, such as:

    1.The Teams app is not updated to the latest version. You can check for updates by selecting your profile picture at the top of the app, and then selecting Check for updates.

    1. The Teams app uses a poll mode to update the presence status, which may take a few minutes. You can try to wait for three minutes after resuming activity on your desktop and see if the presence status changes to Available.

    3.The Teams app has a presence session timeout and expiration mechanism that may affect the presence state. You can try to reset your status manually by clicking on your profile picture and selecting a different status from the list.

    4.The Teams app has some limitations for users whose mailbox is hosted on-premises, such as a maximum presence delay of an hour. You can check if this applies to you by contacting your administrator.

    Additionally, you can contact your administrator using the diagnostic tool in the Microsoft 365 admin center to verify possible issues affecting user status.

    Finally, according to the documentation, the response code for this API is 200 OK if the request is successful. To get the response code and the time taken to complete the API request, you can use the Microsoft Graph SDKs for your preferred programming language. The SDKs provide a way to access the HttpResponseMessage object that contains the status code and other information about the response.


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.