I am reaching out to inquire about the feasibility of integrating user status information from Microsoft Teams into our SharePoint Framework (SPFx) solution. As we strive to enhance collaboration and communication within our organization, we believe that having real-time visibility into users' availability statuses hours (such as available, away, busy, in a call, out of office hours) directly within our SharePoint environment could greatly improve productivity and streamline workflow processes.
Could anyone please provide insight into whether it is possible to access and retrieve user status information from Teams programmatically? Additionally, we are interested in understanding any potential challenges or limitations associated with implementing such functionality within SPFx. Your expertise in this matter would be greatly appreciated.
You can use the graph
/presencemethod. User presence is not "in teams", it is sort of "global" (i.e. you can see it also in Outlook or Excel for example).https://learn.microsoft.com/en-us/graph/api/presence-get?view=graph-rest-1.0&tabs=http
In the SPFx web part:
Here I came across some article that explains that in details: https://vitalyzhukov.com/en/spfx-teams-presence-status-microsoft-graph