how to capture the security attributes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
when I am trying to move the changes to update set in ACL , acl is capturing but that related security attribute conitions are not adding properly. can anyone please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi,
You can capture it using the script below
var gr = new GlideRecord('<table name>');
gr.addEncodedQuery("<Encoded Query>");
gr.query();
gs.print(gr.getRowCount());
while(gr.next())
{
var gum = new GlideUpdateManager2();
gum.saveRecord(gr);
}
Just have your update set marked as your current update set, and run this query in a background script with correct table name and encoded query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hello @ShireeshaVemula ,
When moving changes using an Update Set, the ACL record itself is captured correctly, but the related Security Attribute Conditions are often not added properly. This happens because Security Attribute Conditions are stored in a separate table and are not always automatically included in the Update Set when an ACL is updated. In some cases, these conditions may have been created before the Update Set was selected, so they never got captured. This is a known platform behavior in ServiceNow. To resolve this, it is recommended to review the Update Set and check whether the Security Attribute Condition records are included. If they are missing, they need to be added manually or recreated in the target instance. A common workaround is to reopen the ACL, make a minor change, and save it again while the correct Update Set is selected, which may force the conditions to be captured. Always validate ACL functionality after deployment to ensure security conditions are applied correctly.
You can refer this :
If this helps you then mark it as helpful and accept as solution.
Regards,
Aditya,
Technical Consultant
