ACL on workspace not working as expected

Rosy14
Tera Guru

Hi,

I want to hide CSM workpace from the below list for users having "sn_hr_sp.hrsp_employee" role

Rosy14_0-1737553428953.png

 

I created two ACLs but it is not hiding for the users.

The user have snc_internal role and sn_hr_sp.hrsp_employee

Rosy14_2-1737553518379.png

Rosy14_3-1737553534299.png

 

 

I added snc_internal role in role section of ACL and below script for both 

answer = true;
if (gs.hasRole('sn_hr_sp.hrsp_employee')) {
    answer = false;
}


 

1 ACCEPTED SOLUTION

Rosy14
Tera Guru

After adding this it is working.

Rosy14_0-1737557785481.png

 

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Rosy14 

did you logout and login again?

the config looks fine to me

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Venkatesh_N
Tera Guru

Hi @Rosy14 ,

Two inputs to debug :
1) Create those two ACLs' in Global scope.
2) Check other existing ACLs shouldn't be granting access.

I hope this helps. Mark my answer correct & Like Helpful, if Applicable.

Thanks!
Venkatesh Nekkanti



Rosy14
Tera Guru

After adding this it is working.

Rosy14_0-1737557785481.png