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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 12:53 AM
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!
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 04:02 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 04:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 06:32 AM
I also added this to the script
answer = checkUser();
function checkUser(){
if (gs.getUserID() == "890dd16a1b490910f23c42a0f54bcbaa"){return true;}
return false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 06:55 AM
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
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 06:58 AM
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
Regards,
Shloke