ACL not working with condition builder

jamhoe
Tera Expert

Hi All,

I am creating an ACL to restrict a user with a custom role to access and update Incident records.

I have tried to create a Read ACL rule with the following configurations:

find_real_file.png

find_real_file.png

However, if i tried to impersonate a user with a 'bu_itil' role, those 3 records does not display on the incident list.

I have also tried to script the condition but it is not evaluated when I checked it on the debug logs.

Maybe you guys can help me out on this . TIA.

1 ACCEPTED SOLUTION

Hi Amlan,



I used the code you have provided, however it did not provide me the right results.



But, I tried to tweak the code based on what you have provided and it does the trick.



find_real_file.png



find_real_file.png



Thanks for the help.



Regards,


JM


View solution in original post

21 REPLIES 21

lSurya 24
Giga Guru

Hello Joe,



As per your requirement, you mentioned to restrict the access for a specified role and later you also mentioned that, when you are accessing the incident the records are visible. which means Acl is intact. Is that you want to give access to only the specified user and no other role? My bad, can you elaborate your issue?



Thanks,


Surya Amara


Hi Surya,



Sorry for the confusing statement.



What I mean is that I want a user with a 'bu_itil' to only see incident records that 'Business Unit' is only RRG. That user cannot see other incident records.



Hope it clarifies. Thanks.


Hello Joe,



If the ACL is saying 3 records matching which matches with the condition then I believe ACL is working fine. I doubt there are other ACL's which are restricting from displaying the current records to the user. Please ensure that you also check other ACL's running on the same table.



Thanks,


Surya Amara



PS: Hit like, Helpful or Correct depending on the impact of the response


I already double check everything. But let me check it again. THanks.