Browser limitation detected

Facebook browser may limit features like the Menu. For the best experience, please tap (...) and choose 'Open in Browser'.

Photo by Tejas Choudhary / Unsplash
Purview PowerShell : fix the "matches multiple entries" error

Purview PowerShell : fix the "matches multiple entries" error

— 1 min read

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

data-mapping="pathname" data-strict="0" data-reactions-enabled="0" data-emit-metadata="0" data-input-position="top" data-theme="preferred_color_scheme" data-lang="en" data-loading="lazy" crossorigin="anonymous" async>
banner-Bastien Perez
Bastien Perez avatar

Freelance Microsoft 365 - Active Directory - Modern Workplace

France