I'm using Teams Graph API 'https://learn.microsoft.com/en-us/graph/api/reportroot-getteamsuseractivityuserdetail?view=graph-rest-1.0' to get the User Activities. I get the following result through Postman. You can there are only 2 records.
API's output shown in Excel
Whereas, if I run the same report under Teams Admin center's 'Usage report' for Teams User Activity, I get different result. You can see 3 records and they are different records then what I get thru API.
Teams Admin center's 'Usage Report'
Is there any setting in MS Teams or is this a known issue or a BUG?
Related
Is there any way to allow the attendees to report using Graph API for the online meetings?
as nothing clear from Microsoft documentation here about the property needs to be sent in the request body.
I was able to enable it manually from the MS Team App in the meeting settings, but not able to do it using the Graph API.
As an admin, you control whether meeting organizers can download meeting attendance reports by setting a Teams meeting policy. By default, the ability to download the report is turned on.
Microsoft Graph API currently doesn't provide any way to allow attendees to report using Graph API for online meetings.
We are using MS Graph API Teams API to create a filesFolder in a private channel
We find out that GET of :
/teams/f341------b12e/channels/19:9081-----b41c#thread.tacv2/filesFolder
answers 404 with this message :
"Folder location for this channel is not ready yet, please try again later"
(actual ids replaced)
-> if we retry it succeeds after several minutes (!).
While sharing a file in Teams of creating a site in SharePoint with MS365 admin is instantaneous.
Is there a way to have the sharepoint filesFolder created quickly ?
Or is it that there is no SLA on this part of the API ?
Are there any known issues with using the Graph API to talk to Teams, when it's the free offer?
I can authenticate to the Graph endpoint and retrieve my user details, setting the AAD tenant to my "default directory". If I look at my group memberships with GET /me/memberOf, I can see that there are Microsoft 365 groups for each of my teams. But as soon as I try to do anything Teams-related, like GET /teams/{group_id} I get a 403 error: "Failed to execute Skype backend request GetThreadS2SRequest."
We want to get the number of acitivities for a user, which is also shown as badge in the teams app.
I didn't found any direct way. Does anyone found a way to achieve this indirectly?
There is no such way to get all the activity of an user in Teams.
You can look into Subscription Graph API. It allows a client app to receive change notifications about changes to data in Microsoft Graph. Currently, subscriptions are enabled for the following resources:
An alert from the Microsoft Graph Security API
A conversation in an Office 365 group
Content in the hierarchy of a root folder driveItem
in OneDrive for Business, or of a root folder or subfolder driveItem
in a user's personal OneDrive
A list under a SharePoint site
A message, event, or contact in Outlook
A user or group in Azure Active Directory
See Use the Microsoft Graph API to get change notifications for the possible resource path values for each supported resource.
Is that possible to uniquely identity groups that belong to Microsoft Teams from the result returned from https://graph.microsoft.com/v1.0/groups?
You can't tell if any specific group is also a team by using the url (https://graph.microsoft.com/v1.0/groups). But you can get all the list of Teams joined by you using Joined teams API.