Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to display roles and group of the selected user in a catalog item

Neil_Carlo24
Tera Contributor

Hello,

How to display roles of the selected user in a catalog item, what variable should i use? i want to add new field for the user role and groups of the currently selected user.

5 REPLIES 5

Addy22
Tera Guru

Hi,

 

You can use List Collector variable for both role and group. 

SunilKumar_P
Giga Sage

Hi @Neil_Carlo24, You can create variables as following User(Reference), Group(List Collector), Role(List Collector) and have the Advanced reference qualifier and variable attribute as below:

 

SunilKumar_P_1-1703060752982.pngSunilKumar_P_2-1703060784358.pngSunilKumar_P_3-1703060856593.pngSunilKumar_P_4-1703060888249.png

 

Regards,

Sunil

 

Hello @SunilKumar_P 

I've tried this but it wont shwoing.

Hi @Neil_Carlo24 , Can you provide the variable names and the reference qualifier you have in place?

 

Regards,

Sunil