Export-EntraGroupMemberShip
1.0.0
Authenticates interactively against Microsoft Graph using the OAuth 2.0 device code flow
(Invoke-RestMethod only - no Microsoft.Graph, MSAL.PS, or AzureAD module dependency) and
enumerates Microsoft Entra ID groups. The report contains one row per group with:
- GroupName : the group's display name.
- GroupSource : Cloud (native Entra ID) or Window
(Invoke-RestMethod only - no Microsoft.Graph, MSAL.PS, or AzureAD module dependency) and
enumerates Microsoft Entra ID groups. The report contains one row per group with:
- GroupName : the group's display name.
- GroupSource : Cloud (native Entra ID) or Window
Authenticates interactively against Microsoft Graph using the OAuth 2.0 device code flow
(Invoke-RestMethod only - no Microsoft.Graph, MSAL.PS, or AzureAD module dependency) and
enumerates Microsoft Entra ID groups. The report contains one row per group with:
- GroupName : the group's display name.
- GroupSource : Cloud (native Entra ID) or Windows Server AD (synced via Entra Connect).
- GroupType : Microsoft 365, Security, Mail-Enabled Security, Distribution, Dynamic, etc.
- Members : comma-separated list of direct members (users and groups). Members that
are themselves groups are suffixed with " (Group)".
- NestedGroupMembers : for every direct member that is a group, that nested group's own members,
formatted as "NestedGroupName: member1, member2; NextGroup: member3".
Show more
(Invoke-RestMethod only - no Microsoft.Graph, MSAL.PS, or AzureAD module dependency) and
enumerates Microsoft Entra ID groups. The report contains one row per group with:
- GroupName : the group's display name.
- GroupSource : Cloud (native Entra ID) or Windows Server AD (synced via Entra Connect).
- GroupType : Microsoft 365, Security, Mail-Enabled Security, Distribution, Dynamic, etc.
- Members : comma-separated list of direct members (users and groups). Members that
are themselves groups are suffixed with " (Group)".
- NestedGroupMembers : for every direct member that is a group, that nested group's own members,
formatted as "NestedGroupName: member1, member2; NextGroup: member3".
Installation Options
Owners
Package Details
Author(s)
- Chendrayan Venkatesan
Tags
EntraID AzureAD GroupMembership MicrosoftGraph Export
Functions
Get-DeviceCodeAccessToken Invoke-GraphGet Get-EntraGroupTypeLabel Get-EntraGroupSourceLabel Get-EntraMemberTypeLabel Get-EntraMemberDisplayName Get-EntraNestedGroupMemberSummary
Dependencies
This script has no dependencies.
Release Notes
No module dependency, uses device code sign-in and Invoke-RestMethod against Microsoft Graph directly
FileList
- Export-EntraGroupMemberShip.nuspec
- Export-EntraGroupMemberShip.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.0 (current version) | 6 | 9/11/2026 |