Needs to show caller_id=current.loginuser && Mangers reports caller_id incidents needs to show
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Team,
I have a requirement for the Incident table regarding Read and Write access based on the caller's management hierarchy.
Requirement
Access should be granted according to the following rules:
The caller of the incident should be able to read and update their own incident.
Condition: Caller = Current Logged-in User
Any manager in the caller's management hierarchy should be able to read and update the incident.
This includes the caller's direct manager, manager's manager, and so on up to the top of the organization.
Subordinates should not have access to their managers' incidents.
Employees should only be able to access their own incidents and should not be able to view or update incidents created by their managers or higher-level managers.
Example Hierarchy
CEO │ Manager 4 │ Manager 3 │ Manager 2 │ Manager 1 │ Employee 1
Expected Behavior
Logged-in User Incident Caller Access
Could you please confirm the recommended approach for implementing this requirement in ServiceNow, particularly whether it should be handled using ACLs and any scripts will helps
Regards,
CK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
The ACL script should return true when:
Logged-in user is the Caller.
Logged-in user is the Caller's manager.
Logged-in user is the manager's manager.
Continue checking upward until the top of the hierarchy.
If none of these conditions are met, return false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
You can try with Create/update Read and Write ACL along with following script
- Navigate to System Security > Access Control (ACL)
- Create or modify a table-level ACL with:
- Type: record
- Operation: read (and a separate one for write)
- Name: incident
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti