Only allow admins to delete user records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:51 AM
Hello ServiceNow Community,
I hope you're doing well!
I am currently trying to create an ACL rule that only allows users with the Admin role to delete records from the sys_user table. Additionally, I only want users with the admin role to delete records from the sys-user table is that record is no longer active.
I'm having issues getting this to fire properly. Will this require any additional scripting? Is there an ACL that is conflicting with this?
I've attached the image of my solution below.
Let me know your thoughts!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:59 AM
Hi Philip,
This might be conflicting with OOB ACL which allows admin to delete all user records. if one of the acl's give logged in user access to delete, they will be able to delete the user records.
You might also need to add visibility condition on delete ui action which allows users to delete records.
You might want to deactivate the OOB ACL and use your custom ACL to fire it properly.
Warm Regards,
Shivambi