Create Users web query with users not included in any Entra ID admin unit
Summary: This article contains step-by-step instructions on how to create Users web query with users that are not included in any Entra ID Admin Unit.
Applies to: Cayosoft Administrator 8.4.0 or later
In the Cayosoft Administrator Console, navigate to the Users web query.
Enable Design mode. Learn more in: Design Mode.
-
Open Query > Query MS Graph API .
In the Add/Edit command dialog, locate the End field.
-
Replace the line:
Copytry{ $foundUsers = Get-CGraphResource -Beta -ResourceType user @tmpParams }catch{}with
Copytry{ $foundUsers = Get-CGraphResource -Beta -ResourceType user -Expand MemberOf @tmpParams }catch{} -
Save changes.
Disable Design mode.
Open the Other Query Settings section.
Add the MemberOf attribute to System Properties.
-
Set Post-query filter to:
Copy{ $null -eq $_.memberOf -or $null -eq ($_.memberOf | ?{$_."@odata.type" -eq "#microsoft.graph.administrativeUnit"})} Save changes.
Comments
0 comments
Please sign in to leave a comment.