How to recover a deleted ACL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 01:41 AM
I deleted an ACL by mistake, is there a way to recover it. Would the recovery process get captured in the update set or I should removed the element of deletion from the update set. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 01:45 AM
Hi @Med99
If you go to Deleted Records (sys_audit_delete) - you can search for your ACL that has been deleted. And then recover it by using the "Undelete Record" UI Action.
I'd then remove the deletion & recovery from your update set so it doesn't get pulled up the stack when you move the update sets.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 01:47 AM
Hi @Med99,
was it deleted by you or somebody else?
You can go to this module:
Or check the update set, there will be the delete record or the [sys_update_xml] if it was not your update set, but somebody else's..
Last possibility, if it was deleted in one instance and you have still have the same record in another, you can export it from another instance. If deleted in DEV, export from TEST or vice-versa.
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 01:52 AM - edited 07-03-2025 01:53 AM
Hi @Med99 ,
Quick Tip: Recovering a Deleted ACL in ServiceNow
If you've accidentally deleted an ACL:
- Check the Deleted Records: You can often find the deleted ACL in the update set as a "delete" entry.
- Create a New Update Set: Move the deleted ACL entry into a new update set.
- Import export rule from dev and test
If this helped you, please consider marking the reply as Helpful! 😊
Chandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 01:53 AM
No such recovery possible, but there is a hack to do that.
First create an updateset in the same scope as the ACL you deleted.
Go to Customer updates (on application navigator type sys_update_xml.LIST and hit enter).
Apply filter on type to match "Access Control" and try to locate the ACL that you are looking for by name or updated by yourself. There should be two record one with "INSERT_OR_UPDATE" on action and another record with action"DELETE".
Open the customer update record with action "INSERT_OR_UPDATE", on hte field "Update set" select the updateset you created in first step and udpate the record.
Now goto the updateset you created and complete it and export it, now you got the updateset with the ACL you can deploy it to any instance and then export as XML and import to this instance as well.
Note: You only retrieved the access control, to import the role under that you have to look for type "Access Roles" and add to updateset similar to access control.