logged in user to see only it's own assigned cases

Damian Martinez
Mega Sage

Hello Community, I hope everyone is ok.
I have set up a new user and I have been told that this new user only needs visibility on the cases assigned to him.
Does somebody know how to accomplish this? I guess I have to setup ACL or business rule, but not sure.

Thanks in advance!

18 REPLIES 18

This error probably happens when you're creating an ACL on a different scope. So the case table probably has its own scope and you'll need to change your scope to that one.

And yes, you'll need to create a write ACL as well, but luckily it's enough to just rightclick the grey area on top and select insert and stay with roles when you've saved your first read ACL. Then on the newly inserted ACL you can just change the operation to write and save it.

You can also do the change first and then select the insert and it will not save the original record, but the new record will contain the changes.

 

The business rule simply restricts retrieved records. If there is an existing ACL blocking write access, then your user would not be able to write if the ACL blocks them.

Thanks Joni,
I tried in the correct scope and and I could create the ACL as per your first response,
However user is still able to see all of the cases, not just the ones assigned to him.
See screenshot of ACL:

find_real_file.png

is there something else that I'm missing?

Thanks.

I also added this to the script

answer = checkUser();

function checkUser(){

    if (gs.getUserID() == "890dd16a1b490910f23c42a0f54bcbaa"){return true;}

return false;

}

 

 

Hi,

Couple of points to note here for your case to work correctly:

This should be Read operation Table Level ACL with script to be used as below:

if(gs.getUserID() == current.assigned_to){
answer = true;
}else{
answer=false;
}

Also just adding this script will not work , you need to look at the existing ACL as well, because even if one of them allow access then your New ACL will not work.

So Navigate to your Table and find all Table level ACL tagged to that table and then look there should not be any ACL allowing access.

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Can you tell me which Table you are trying to write this ACL on, I can help you with the existing ACL which you need to update.

 

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke