Retrieving all Role Groups configured in Exchange Online.
Sample Output
...
Name : Security Operator
Description : Manage security alerts, and also view reports and settings of
security features.
Members : {}
ManagedBy : {Organization Management}
Roles : {Tenant AllowBlockList Manager}
RoleAssignments : {Tenant AllowBlockList Manager-Security Operator}
Name : GlobalReaders_-1859149673
Description : Membership in this role group is synchronized across services
and managed centrally. This role group is not manageable
through Microsoft Exchange. Members of this role group may
include auditor. By default, this group is not assigned any
roles. However, it will be a member of the View-Only
Organization Management role group and will inherit the
rights of that group.
Members : {}
ManagedBy : {Organization Management}
Roles : {}
RoleAssignments : {}
Name : TenantAdmins_2087895616
Description : Membership in this role group is synchronized across services
and managed centrally. This role group is not manageable
through Microsoft Exchange. Members of this role group may
include cross-service administrators, as well as external
partner groups and Microsoft Support. By default, this group
may not be assigned any roles. However, it will be a member
of the Organization Management role group and will inherit
the capabilities of that role group.
Members : {administrator}
ManagedBy : {Organization Management}
Roles : {}
RoleAssignments : {}
...
PowerShell Code
Note: This code requires the Exchange Online Management module.