Forum Discussion
Sohaib_Khan
Jun 09, 2020Copper Contributor
Microsoft Teams API
Hello,
I would like to develop a custom web part in SharePoint Online which will provide me the list of Active users on Team based on presence like Available, Away etc. Also, I would like to develop a chart which will show me the number of available hours or each user.
To achieve this purpose, I would like to know the APIs which are available which we can consume.
Thanks,
Sohaib
- Hi Sohaib_Khan
For Teams, you would use the Graph API
https://docs.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
For presence
https://docs.microsoft.com/en-us/graph/api/presence-get?view=graph-rest-beta&tabs=http
For calendar
https://docs.microsoft.com/en-us/graph/api/calendar-get?view=graph-rest-beta&tabs=http
Hope that answers your question
Best, Chris
2 Replies
Sort By
- JLVaughnCopper ContributorI am trying to retrieve analytics on Microsoft Teams participants status with date time stamp. I need when they join or leave a meeting, along with when their video or audio is turned on/off.
- Hi Sohaib_Khan
For Teams, you would use the Graph API
https://docs.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
For presence
https://docs.microsoft.com/en-us/graph/api/presence-get?view=graph-rest-beta&tabs=http
For calendar
https://docs.microsoft.com/en-us/graph/api/calendar-get?view=graph-rest-beta&tabs=http
Hope that answers your question
Best, Chris