Forum Discussion

OhhAhh's avatar
OhhAhh
Copper Contributor
Oct 19, 2023

Creating a Dynamic user group where members must be a member of 2 other groups

Hi

I have Group A which is made up of direct members

I have Group B which is a dynamic group

 

I want to create a dynamic user group and have it populate with users where the members belong to both Group A and Group B.

 

I have tried

user.memberof -any (group.objectId -in ['xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx']) -and ,'user.memberof -any (group.objectId -in ['zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz']) but that doesnt work.  It seems that there is no option to replace -any with -all

 

I have read some of the preview limitations so suspect that it might not be possible.  But if that is the case what is the best way to create a dynamic group where the members must exist in both the other 2 groups ?

 

Thanks