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

1 ACCEPTED SOLUTION

@JonnyFoster 

that's correct.

Store that in a custom table and make this variable point to it.

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

View solution in original post

15 REPLIES 15

Thanks, Ankur. 

 

I don't have the roles defined in a table anywhere. I guess I'd need to do this somehow first? Sorry, if it is basic 101 ServiceNowing, but this is one of the most complex Catalog Items I've made so far!

@JonnyFoster 

that's correct.

Store that in a custom table and make this variable point to it.

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

@JonnyFoster 

Thank you for marking my response as helpful.

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

Will do - just had a couple more questions in the last post:

 

What would you capture in the new table? I guess one row for the permission name, another one referencing the application/system/service it belongs to and then, perhaps, 'available to' columns for users, departments, etc?

 

Thanks

Hello @Ankur Bawiskar Just chasing a response to this, please?

 

What would you capture in the new table? I guess one row for the permission name, another one referencing the application/system/service it belongs to and then, perhaps, 'available to' columns for users, departments, etc?

 

I could also perhaps use some help on the script I'd need to use to refine the variables that show dependent on the user's department/company. 

 

Thanks