ACL for Catalog Item Category Condition Not Working as Expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2024 08:24 AM
Hello Community,
I’m working on a custom ACL in ServiceNow to restrict access to request items based on a catalog item category condition. The requirement is to allow access only to request items that are part of a specific category containing "Operation Technology". However, this ACL isn’t working as intended—users who do not meet this condition can still view these request items.
Out-of-the-Box ACL Modification:
I began by reviewing and modifying the out-of-the-box ACL for request items and added conditions related to the catalog item category.- The ACL is a more general condition that restricts access based on roles, ensuring only users with certain roles can see request items if they aren’t in the "Operation Technology" category.
Script contains :
Custom ACL Condition:
I created or modified an ACL condition to restrict access based on the catalog item category. The condition specifies that access should only be granted if the catalog item’s category contains "Operation Technology".- The ACL restricts access to items in the "Operation Technology" category, allowing only users associated with this category to view those items
Only users who meet the specific condition (i.e., catalog item category contains "Operation Technology") should be able to see request items in that category. All other users should be restricted.
Observed Behavior:
Users who do not meet the "Operation Technology" condition can still view these restricted request items.
Despite configuring these ACLs carefully and testing multiple approaches (adding debug logs and disabling other ACLs to avoid conflicts), users who don’t meet either condition are still able to view restricted items. I’d appreciate any insights into why these ACLs might not be working or tips on ensuring the category-based and role-based conditions are properly enforced. Thank you!
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2024 07:29 PM
@Asha Ganipi Based on your code and the behavior you're seeing, it appears that the ACLs might not be enforcing the access control properly due to either misconfiguration or missing conditions in the ACL logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 02:52 AM
Thank you for the feedback. I’ve double-checked the ACL configuration, and it appears correct based on the requirements: it includes specific conditions for both catalog item category and user roles. However, if there’s any particular area of the code or logic that could potentially cause this issue, I’d appreciate any guidance on where to look or what to test further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 06:30 AM