- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2025 01:24 PM
We are looking to provide a set of users the ability to troubleshoot with admin level access but with read only rights to troubleshoot in the production / preproduction environments. We are looking for a solution to allow them to request read only admin, once enabled we would like to have the user access a UI action pull them out of read only admin. We are also planning on pulling anyone in read only admin out at the end of day.
Our thought is to:
- Create a group for Read Only Admins
- Create a Request Read Only Admin access Catalog request visible to only users in the Read Only Admin group.
- Create a UI action to remove Read Only Admin access
- Add scheduled job to pull any users out or Read Only Admin at xx:xx time local (End of Day)
Process
- Use the existing Access Request catalog item to grant them access to the Read Only Admin group, two levels of approval.
- User would use the Read Only Access Catalog Item to request to be elevated to Read Only Admin – on approval, then automatically assign Read Only to the user.
- When user is done, user select "Remove Read Only" UI action to pull them out of Read Only
Now the question: Any thoughts on how to create a UI action that isn’t blocked by the read only role?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2025 10:04 PM
Why to allow them to click the UI action? If they don't click they will still have the role till the job runs
Why not ask for how many days or hours it's required on catalog form?
Simply remove that read-only admin role after that duration from your flow and no scheduled job required?
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
‎02-11-2025 09:42 PM
Hi @Jeff Lanham ,
You can create a client script which checks if the current user has the "admin" role. If not, the UI action won't be visible to them.
something like below :
if (current.user.roles.contains('admin')) {
return true;
}
return false;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2025 10:04 PM
Why to allow them to click the UI action? If they don't click they will still have the role till the job runs
Why not ask for how many days or hours it's required on catalog form?
Simply remove that read-only admin role after that duration from your flow and no scheduled job required?
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