1

I'm trying to resolve a sharing issue with Case records. The org-wide defaults are private Accounts, private Opportunities, Contacts controlled by Parent and Cases are private.

If a case is owned by a queue or user, the members of the queue or user can see the case and work on the case based on their profile settings. I have a user with a profile that has create/read/edit and I want them to be able to access the case when they do not own the case. I cannot set cases to public read without setting account to public read, which is not an option. I have tried setting up sharing rules on the case and the user gets insufficient privileges. I also tried manually sharing the account, opportunity and case with the user giving full read/write access and they still get insufficient privileges.

Now, if I give the "View All" permission then they can access the case. Or, if I add them as a case team member they can see and edit the case. However, the "View All" permission seems a bit heavy handed and the case team is not the best solution because it is manual unless I write some code to automate the sharing and there are other limitations that would not fit this particular business requirement.

A case sharing rule would be the best solution, but I cannot identify why I keep getting insufficient privileges. I tried sharing cases with the highest role and their subordinates with the highest role and their subordinates, which shares the case with everyone and giving them public read access. The profile has create/read/edit. The field level security is set properly. I even removed all unnecessary fields and lookup fields from the case layout and left only the standard case fields on the layout. The profile has access to the case record types. I removed all related lists from the page layouts. What other case settings could cause the user to get insufficient privileges. I don't see what else is missing to give them access.

Thanks.

  • 1
    Can you clarify in what situation the user receives an insufficient privileges error? What operation are they completing when that appears? – David Reed Oct 29 '18 at 14:56
  • 1
    Does the user have a role? Have you tried using a Public Group, adding that user to the group, then creating a Sharing Rule for that? – sfdcfox Oct 29 '18 at 15:09
  • The insufficient privileges occurs when the user attempts to view the case detail page. @sfdcfox Yes, the user does have a role. I have not tried using a public group, but I will give that a shot. What is the difference using a sharing rule with a group instead of the role and subordinates? – Dman100 Oct 29 '18 at 16:37
  • @Dman100 They're very similar, just that you get to specify the specific members of the group. Also, another side question: Is this the default Case page, or is there a Visualforce page override? – sfdcfox Oct 29 '18 at 16:40
  • 1
    @sfdcfox I finally resolved the issue. I was missing the account on the case. I didn't have the field on the layout and the opportunity was populated and I mistakenly thought the account was already associated to the case. Thanks for your help. – Dman100 Oct 30 '18 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.