Skip to main content
September 22, 2023
Solved

Members from Multiple group

  • September 22, 2023
  • 10 replies
  • 0 views

Hi Expert

I want to find members from two groups. can anyone help me how to write expression rule for that?

Thanks 

Best answer by mikes0011

Functions Documentation is highly useful. Keep it open in a browser tab if you can.

For instance we have the function a!groupMembers(), which you feed a group and you can get all users that belong to the group.

Then we have the intersection() function which returns the values that are common between two arrays.

Put those together and you suddenly have an array of all users that belong to both groups!

10 replies

stefanhelzle0001
Brainy
September 22, 2023
mikes0011
Brainy
September 22, 2023

"members from two groups" could mean a few things that are mutually exclusive.  Can you clarify?  For instance, do you want "all users who are members of at least one of these two groups"?  Or alternatively "all users who are members of both groups"?

September 22, 2023

I want All  users who are member of both groups?

mikes0011
mikes0011Answer
Brainy
September 22, 2023

Functions Documentation is highly useful. Keep it open in a browser tab if you can.

For instance we have the function a!groupMembers(), which you feed a group and you can get all users that belong to the group.

Then we have the intersection() function which returns the values that are common between two arrays.

Put those together and you suddenly have an array of all users that belong to both groups!