Refine variables dependent on user's Department

JonnyFoster
Tera Contributor

Hello team

 

I'm in the midst of redesigning a catalog item for request to an application that is available to most people within my organisation - (Core Systems). However, there are several access levels within this application that are available and provide access to different areas of the system, however these are specific to a user's role within the company.

 

Is there a way in which I can restrict which variables appear dependent on the requested_for.department? For example, I don't want our Retail team to be able to ask for access to the Finance side, but they should be able to make requests for roles attributed to the Retail department. 

 

Thank you

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@JonnyFoster 

yes you can have onChange catalog client script and handle the logic of showing/hiding the variable on your form based on other variable

what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

GlideFather
Tera Patron

Hi @JonnyFoster,

 

please share more details on the design perspective.

 

Is that form accessed by wide audience?

You can use the catalog client script and apply it on variable (set) or you can create two catalog items and apply different access rules (user criteria). Retail team will see something and others will see something else...

 

It's too vague to tell you what's better, please share more details

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */