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
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

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Export-EntraGroupMemberShip

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

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

Version History

Version Downloads Last updated
1.0.0 (current version) 6 9/11/2026