How to restrict catalog form to only particular groups using advanced script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:01 PM
Hi,
How to restrict catalog form to only particular groups using advanced script in user criteria condition is like group contains developers?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:14 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:19 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:28 PM - edited 03-27-2024 02:53 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:15 PM
Do you have a script which we can refer?
Also check the below thread. It may help to build the script
Please mark this response as correct or helpful if it assisted you with your question.