powershell-scripts/Get Microsoft Users Direct Membership (Groups, Directory Roles, and AUs)

List Microsoft 365 Users Direct Membership Using PowerShell

List Microsoft 365 users direct membership, admin roles assigned & administrative units (AU) in Entra ID they are members of using PowerShell.

Sample Output:

The script exports 3 different CSV reports detailing the users direct memberships in Microsoft 365.

Users direct group membership report:

Direct Group Membership Report

Users with admin roles:

Users with admin roles report

Users and their administrative units:

Users and their administrative report

Microsoft 365 Reporting Tool by AdminDroid

Wondering where your users are within Microsoft 365? With AdminDroid Microsoft 365 reporting tool, you can explore over 1900+ pre-built reports & 20+ interactive dashboards to explore your data in depth. Discover user locations and more with AdminDroid!

View more comprehensive insights on group memberships through AdminDroid: https://demo.admindroid.com/#/1/11/reports/1006/1/20