Salesforce – How to solve Insufficient Privileges error?

Have you ever received Insufficient Privileges error after trying to access some record? Or maybe one of your Salesforce users reported this problem?

Not everyone knows that Salesforce provides a handy feature that allows checking why a specific user has access to some record (for standard or custom object). This only works if Sharing Settings are set to “Private” or “Public Read Only” (as sharing doesn’t make sense for “Public Read/Write”).

The best way is to use the System Administrator profile (or any other profile with View All Data permission), go to a specific record and click Sharing button (this works only in classic UI, as the Sharing button is not yet available in Lightning).

and then we see which groups, roles or users have access to this record.

When we click Expand List button, we can see all users.

Then after clicking “Why” link, we can see even more detailed information about “Reasons for Access“.

Direct URL

If we have a user id and record id, we can allso easily view this page without going through those steps and go directly to following URL:

https://<instannce>.salesforce.com/setup/own/entitywhylist.jsp?id={recordId}&uid={userId}

Leave a Reply

Your email address will not be published. Required fields are marked *