Thomas Segato
Thomas Segato

Reputation: 5257

Getting the user who created a 365 group

Is it possible to extract from Microsoft Graph to fetch what user has created a specific 365 group? I need to get which user created specific team site.

Best R, Thomas

Upvotes: 0

Views: 622

Answers (1)

AlfredoRevilla-MSFT
AlfredoRevilla-MSFT

Reputation: 3495

For non admins users you can use this:

https://graph.microsoft.com/v1.0/groups/{group object id}/createdOnBehalfOf

For every user you can use the List directoryAudits operation with the following query and extract initiatedBy/user/id from each returned record.

https://graph.microsoft.com/v1.0/auditLogs/directoryAudits?$filter=category eq 'GroupManagement' and activityDisplayName eq 'Add group'

Upvotes: 1

Related Questions