is it possible to display catalog item based on the users belonging to particular assignment group

User662578
Tera Contributor

There is a requirement from customer where they want catalog item variables visible to two assignment group and for each assignment group there will be changes in variables.

 

for example : Assignment group A and Assignment Group B

 

if member of assignment group A is submitting then there will be 10 variables

 

if member of assignment group B is submitting then there will be 7 variables,

 

We do not want to add a condition in Catalog variables to display the question instead based on the user submitting the catalog item.

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@User662578 

yes why not

-> use onLoad catalog client script and check if logged in user belongs to which Group and then show/hide the variables

where are you stuck?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@User662578 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

AndersBGS
Tera Patron

Hi @User662578 

 

As @Ankur Bawiskar  correctly have mentioned, an onLoad client script is the best solution to check weather the user is part of assignment group A or B - or both 🙂

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/