reference qualifier to show only wanted groups

Jori
Giga Guru

I created a form to show only specific groups using reference qualifiers to add/remove users from aad groups.
form and flow works fine, but when im using the form to select groups, is it possibly to only get the groups the user is not member of when adding and when removing only the groups the user is member of?

1 ACCEPTED SOLUTION

Tai Vu
Kilo Patron
Kilo Patron

Hi @Jori 

Let's try the below approach in the Reference Qualifier of your Group variables.

TaiVu_0-1699516195027.png

 

Cheers,
Tai Vu

 

 

View solution in original post

14 REPLIES 14

Vishal Birajdar
Giga Sage

Hi @Jori 

If possible can you share some screenshot please..!!!

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Ankur Bawiskar
Tera Patron
Tera Patron

@Jori 

yes it's possible. this is for catalog form or normal form?

so how are you deciding whether to add/remove? is it based on some other field/variable

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

hi,
its catalog item that uses list collector for sys_user_group and reference qualifier uses such filters as name starts with x AND email starts with y.
also different forms for adding and removing

@Jori 

I shared solution for something similar in the past.

try to enhance it for your requirement

Add or remove member from the group 

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader