Show incident rows only to the assignment group

shany_b
Kilo Contributor

Hi,

Is there a way to define that only the assignment group could see her incident rows?

I tried to write an ACL:

Operation: read

script:

if(gs.getUser().isMemberOf(current.assignment_group))

{

answer=true;

}

else

{

answer=false;

}

however, the group members can't see any of the records (i attached a screenshot)acl.png

The member that i impersonated should have seen the first 3 rows

Also - I want the ones that are not in the assignment group to not see the records at all - instead of these empty records

Thank you in advance

10 REPLIES 10

This business rule script worked great for me, thank you for sharing!!

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Do you really want to do this? This of others things this will affect like ServiceDesk not being able to see them or Reporting etc.


Stefan Baldhof1
Kilo Guru

Hi shany,



check if there are other ACLs which restrict read access on field level. It seems the user has access to the records, but not to the fields.



Also this might be helpful: Access control list rules


and this: ACL debugging tools



Regards,


Stefan


Hi Stefan,



there was a ACL that collided with the one I wrote,


and now the user can't see the records at all but he should have seen 3 records (i attached a screenshot)



aclS.png


Did you already try to debug your ACLs like described here:



https://community.servicenow.com/external-link.jspa?url=https%3A//docs.servicenow.com/bundle/istanbu...



?



At least this will point to the ACL(s) which currently block access to the records. Then we can look into the details.