What is the Purpose of Roles Field in Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 10:35 AM - edited 10-21-2024 10:39 AM
"Roles" field does not appear on the form is due to the OOB onload Client script- "Hide roles field".
Scenario Tested:
Deactivated above client script so that roles field can be visible on form view.
Given access to admin only.(Please Check Attached Screen shot)
Impersonated as ITIL and Abel (Non-Admins)
Expected it shouldn't be visible to non admin users . But Catalog is visible and Users can place the order.
Question:
What is the use of Roles field ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 11:28 AM
Hi @nagaraju15,
To control access in Catalog Items you'll need to use User Criteria, you can use the Available For tab in the Catalog Item record:
If you found my answer helpful or correct ✔️ in any way, please don't forget to mark it to help future readers! 👍
--
Kind regards,
Marcos Kassak
Solution Consultant 🎯
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 10:09 PM
Hi @Marcos Kassak ,
Thank you for your response. I'm aware of the user criteria.
But of bit curious about Roles Field. If you could give information on it, that would be extremely helpful.
Regards
Akula Nagaraju

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 08:55 AM
Make sense, there's nothing mentioned in the official documentation regarding this field:
https://docs.servicenow.com/csh?topicname=t_DefineACatalogItem.html&version=latest
I have checked the hint and it says:
So, my best guess is that it works just like the 'Roles' field on the Service Portal Widgets table, where we can configure it to be snc_internal, public, or whatever, depending on who can view/interact with it.
My personal opinion is that it's hidden to not cause an additional thing to validate in a Governance model, so you can keep your access rules only on the User Criteria side and not bother checking the roles field.
If you found my answer helpful or correct ✔️ in any way, please don't forget to mark it to help future readers! 👍
--
Kind regards,
Marcos Kassak
Solution Consultant 🎯