ACL for CI Ownership Groups

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 03:05 AM - edited 10-28-2024 03:08 AM
Hi,
I have a scenario where I have to give access to the ownership groups in CI through ACL. Kindly help.
This is what I have done currently. I completed for the single users. The group names below are not in the group name as is, so I can't find them. The first group is servicenow_admin, so we hardcoded it.
if (gs.getUser().isMemberOf('ad53348b874a0510b2bab996cebb35b5') || gs.getUserID()==current.u_it_manager || gs.getUserID()==current.
u_test_lead || gs.getUserID() == current.owned_by)
{
answer = true;
} else {
answer = false;
}
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:02 AM
Hi @Community Alums ,
Your requirement not clear to me. Are you expecting that is logged in user part of business owner ot ci owner group then you want to allow read access to record else no right?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:11 AM
Hi @Runjay Patel ,
The requirement is, I need to edit this ACL Script to see that I can also give access to the groups I have in the pictures.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:23 AM
Hi @Community Alums ,
So written ACL not working ? if you are part of group "ad53348b874a0510b2bab996cebb35b5" then it should allow access.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:26 AM
Hi @Runjay Patel ,
That sys_id is for SERVICENOW ADMIN group. I am saying my script should also allow SUPPORT GROUP, BUSINESS OWNERS GROUP, CI OWNERS GROUP. These group names are not found in sys_user_group. I don't know how I can do it.
Regards
Suman P.