ACL for CI Ownership Groups

Community Alums
Not applicable

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;
}

 

form.png

 

ci owner.pngsupport group.pngbusiness owner.png

 

Regards

Suman P.

7 REPLIES 7

Runjay Patel
Giga Sage

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?

 

 

Community Alums
Not applicable

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.

Hi @Community Alums ,

 

So written ACL not working ? if you are part of group "ad53348b874a0510b2bab996cebb35b5" then it should allow access.

 

Community Alums
Not applicable

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.