What is an ACL? What is the significance of "answer = false" in the ACL script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 02:39 AM
I have Attached the screenshots of an ACL, With reference to the screenshot I need the following answers.
1) What does this ACL do?
2) What is this roles required?
3) What is the meaning of "answer = false" in the ACL script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 03:07 AM
Then Users with any of these roles will be able to write(edit) records on this table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 03:04 AM
An Access Control List (ACL) in ServiceNow is a script that defines the level of access a user has to perform various actions in the platform, such as reading, writing, and deleting records.
The answer = false line in an ACL script specifies that the user does not have the specified level of access. When this line is executed, the platform denies the user access to perform the action they are attempting. If the script does not contain this line or if the line is not executed, the user is granted access.
Here is an example of a simple ACL script in ServiceNow that denies access to a table for all users:
answer = false;
In this example, the script sets the answer variable to false and immediately stops executing. As a result, the platform denies all users access to the table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 03:11 AM
Please mark it helpful, if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 03:08 AM
Please mark it helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 03:08 AM
@Hrishabh Kumar answer=false will block the access no matter what roles you have added. In your case it will block access to all fields of the "cmab_ci_cloud_service_account" table.
Only admin will have access as "Admin overrides" field is checked.
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023