How to restrict catalog form to only particular users?

Venkat141
Tera Contributor

How to restrict catalog form to only particular users?

 

@Ankur Bawiskar 

@Saurav 

@shloke04 

@Anil Lande 

@Maik Skoddow 

@Jaspal Singh 

@Sandeep Dutta 

@Chandra Sekhar Maganty 

@Musab Rasheed

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Pavan Ramireddy 

use advanced script in user criteria and then add this user criteria in Available for related list of that item

As recommended practice please use user_id to get logged in user sys_id

var rec = new GlideRecord('sys_user');
rec.get(user_id);

if (rec.u_division == 'OIT Information Technology')
	answer = true;
else
	answer = false;

Regards
Ankur

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

View solution in original post

13 REPLIES 13

ersureshbe
Giga Sage
Giga Sage

Hi, 

I would recommend to use 'Available For ' and 'Not Available For' option in catalog item.

Go to Maintain Items --> Open any Catalog item --> You can see many tabs and You can use below tabs to configure whom should visible and whom should not visible.

 

find_real_file.png

Please mark as correct answer if it helped.

Regards,

Suresh.

Regards,
Suresh.

Community Alums
Not applicable

Hi @Pavan Ramireddy ,

Please open the catalog items follow the below screenshots.

 

find_real_file.png

 

 

 

find_real_file.png

 

Or you can follow this thread:

https://community.servicenow.com/community?id=community_question&sys_id=363207addb98dbc01dcaf3231f9619f0 

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

 

Hello @Sandeep Dutta,

 

I need to restrict users where on user record, Division field is with OIT Information Technology value.

 

find_real_file.png

 

 

Hi,

You should use advanced check box and write the script to define the availability

https://community.servicenow.com/community?id=community_question&sys_id=69b8c70edb78af4423f4a345ca961945

Can you refer above link and linking the same issue but you should change the criteria to your requirement.

Regards,

Suresh.

Regards,
Suresh.