Skip to main content

SYNOPSIS

Reports on Purview RBAC roles and their effective membership, including groups expanded recursively.

SYNTAX

DESCRIPTION

Produces a report of the membership of Purview RBAC role groups. By default, the report contains only the roles that have at least one member. When a role member is itself a group (distribution group, mail-enabled security group, dynamic distribution group, or a nested role group), its members are resolved recursively and included in the report with DirectMember set to $false and MemberViaGroup set to the name of the group that is a direct member of the role. Circular group references are detected and skipped automatically.

EXAMPLES

EXAMPLE 1

Retrieves the Purview RBAC role report, including recursive group expansion.

EXAMPLE 2

Returns only the membership of the ‘Compliance Administrator’ role group.

EXAMPLE 3

Returns every Purview role assignment held by alice@contoso.com (direct or via group membership).

EXAMPLE 4

Returns every Purview role assignment held by the user whose DisplayName is ‘Alice Doe’.

EXAMPLE 5

Lists all users/objects resolved through group membership, showing which group is a direct member of the role.

EXAMPLE 6

Exports the full report (including group-expanded members) to a CSV file.

PARAMETERS

-Identity

Filter the report on a specific role (matches the Role column, exact case-insensitive).

-PrincipalID

Filter the report on a specific principal. Matches MemberName (alias), MemberPrimarySMTPAddres (UPN/SMTP), or MemberObjectID (ExternalDirectoryObjectId / GUID).

-PrincipalDisplayName

Filter the report on a specific MemberDisplayName (exact, case-insensitive).

-ShowGraph

Reserved for future use. When specified, displays a graphical representation of the role membership.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

[System.Collections.Generic.List[Object]] containing PSCustomObject rows with the following properties:

Role, MemberName, MemberDisplayName, MemberPrimarySMTPAddres, MemberIsDirSynced,

MemberObjectID, MemberRecipientTypeDetails, RoleDescription, DirectMember, MemberViaGroup.

NOTES

Requires ExchangeOnlineManagement module and an active Connect-IPPSSession session. https://ps365.clidsys.com/docs/commands/Get-PurviewRoleReport