RESTAPI: Restricting Permissions to Read-Only for Choice Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 08:29 AM
Hello,
I am using the following GET query to retrieve all possible states for incidents:
I’ve added the "personalize_choices" rule to my user, but now the user has the ability to add or update records in the choice table as well.
How can I restrict the permissions to read-only access for this operation, so the user can only retrieve the data without modifying it?
Thanks in advance for your help! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 09:26 PM
Hello @NoySmr
instead of personalize_choice role, create a custom role and create read acl on sys_choice table and add this custom role in acl.
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 09:47 PM
What's the business requirement to allow API for some user to simply see the choices?
I won't recommend that.
To handle this you can use a scripted REST API and in your script you can share the choices
With this you get control on what's asked and what response you can share in the API.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2025 12:00 AM
I only need the options for states to which I can change the incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 11:59 PM
I only need the options for states to which I can change the incident.