How to restrict catalog form to only particular groups using advanced script?

raj99918
Tera Contributor

Hi,

 

How to restrict catalog form to only particular groups using advanced script in user criteria condition is like group contains developers?

 

Thanks

6 REPLIES 6

Isela Phelps
Tera Guru
Tera Guru

Do you want to restrict the catalog item to only certain groups of developers? Or, do you want to include only the groups that have "developers" in the group?

Some thoughts: How do you know which groups have developers? If there are non-developers in those groups, they will also gain access to the catalog item. Do the developers have a specific "Role", maybe you should restrict it by role if that is the case. Could you create a group and include all the developers in that group, then use the Group user criteria. 

Screen Shot 2024-03-27 at 2.12.22 PM.png



Want to connect? Follow me on LinkedIn

Hi @Isela Phelps  Group name contains a keyword called Developers its just a keyword so i need to restrict the groups which contains this keyword 

Could this help? https://www.servicenow.com/community/hrsd-forum/how-to-write-user-criteria-for-the-catalog-item-base...

With this method, you won't need to code it. 



Want to connect? Follow me on LinkedIn

SanjivMeher
Kilo Patron
Kilo Patron

Do you have a script which we can refer?

Also check the below thread. It may help to build the script

https://www.servicenow.com/community/itsm-forum/user-criteria-script-to-restrict-available-for-on-re...

 


Please mark this response as correct or helpful if it assisted you with your question.