Reference variable selection based on role

Servicenow58
Tera Contributor

Hi All

I try to update reference qualifier for reference variable (assignment group) , should show all groups if ITIL user.

for other users try to use the catalog only specific group only need to appear.

Kindly help me on this requirement.

1 ACCEPTED SOLUTION

Hi,

then do this in the advanced ref qualifier

Give the exact name of group

javascript: var query = ''; if(!gs.hasRole('itil')) query = 'name=Group ABC'; query;

Regards
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Sorry didn't get this part -> should show all groups if ITIL user

Regards
Ankur

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

Hi Ankur,

If ITIL user login and try to search that reference field all groups has to appear.

if non itil user login and search that reference field only one group has to appear(tier 1 support group)

Hi,

then do this in the advanced ref qualifier

Give the exact name of group

javascript: var query = ''; if(!gs.hasRole('itil')) query = 'name=Group ABC'; query;

Regards
Ankur

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