When managing Microsoft 365 compliance (Purview) via Connect-IPPSession, some cmdlets like Get-RoleGroupMember may fail.

For example, the command:

Get-RoleGroupMember -Identity xxx 

will fail if you use the DistinguishedName or Identity value. You will get the following error:

Get-RoleGroupMember: Ex9E65A2|
Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|
The operation couldn't be performed because object:          'FFO.extest.microsoft.com/Microsoft Exchange Hosted Organizations/xxx.onmicrosoft.com/Configuration/OrganizationManagement' matches multiple entries.

To fix this issue, use a unique parameter like ExchangeObjectId. For example, for the group Organization Management:

$group = Get-RoleGroup 'Organization Management'
Get-RoleGroupMember -Identity $group.ExchangeObjectId

Comments

banner-Bastien Perez
Bastien Perez's avatar

Freelance Microsoft 365 - Active Directory - Modern Workplace

France