Produces a report of the membership of Exchange 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.
Filter the report on a specific principal.
Matches MemberName (alias), MemberPrimarySMTPAddres (UPN/SMTP),
or MemberObjectID (ExternalDirectoryObjectId / GUID).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Requires ExchangeOnlineManagement module and an active Connect-ExchangeOnline session for Exchange Online.
For on-premises Exchange, requires the Exchange Management Shell or the Exchange snap-in loaded.