O365 groups activity report returns empty groupIds

sadomovalex 3,631 Reputation points
2022-07-04T08:28:21.347+00:00

Hello, for fetching O365 groups activity report the following Graph endpoint can be used:

https://graph.microsoft.com/beta/reports/getOffice365GroupsActivityDetail(period=%27D180%27)?$format=application%2fjson&$top=2000  

However starting from some time ago groupId property returned from this endpoint become empty for all groups:
217208-2022-07-04-10-41-27.png

Because of that it became impossible to identify groups in report's result. Tried to explicitly add "$select=groupId" to url but it didn't help - groupIds were anyway empty. Note that it worked properly some time ago - so looks like something has changed on backend side. Can someone from MS comment that?

Update: tried also with v1.0 Graph endpoint https://graph.microsoft.com/v1.0/reports/getOffice365GroupsActivityDetail(period=%27D180%27)?$top=2000. Group ids are also empty there (although data is returned in plain text):
217331-2022-07-04-11-41-38.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,058 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShivaniRai-MSFT-7217 2,741 Reputation points
    2022-07-04T09:43:28.043+00:00

    Hi @sadomovalex ,

    According to this documentation on activity reports, GroupID is hidden by default. If you want to view GroupID information and all other identifiable information in Microsoft 365 usage reports, you can use choose to show user details in reports through the organizational settings in the Microsoft 365 admin center. You must be a global administrator to make these changes.

    It can be achieved in the Microsoft 365 admin center by following these steps:

    • In the admin center, go to the Settings > Org Settings > Services page.
    • Select Reports.
    • Uncheck the statement Display concealed user, group, and site names in all reports, and then save your changes.

    After making above changes try to run this API getOffice365GroupsActivityDetail again.

    For more information you can follow this Microsoft Documentation: https://learn.microsoft.com/en-in/microsoft-365/admin/activity-reports/activity-reports?view=o365-worldwide#show-user-details-in-the-reports

    Hope this helps.

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


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.