How to know what is missing for a user to view a custom object (example custom object "Book")

I am getting Isufficient Privileges when I login as a user with a "XXX - Agent" Profile

When I check the profile it has :

Custom Object Permissions Book : Read Access checked

Custom tab settings Book : Default On

enter image description here

  • 1
    you do not have access to record. OWD settings for book object is private.
    – S B
    Commented Jan 27, 2017 at 11:38
  • Why not post that as an answer, @ShravanBoddula?
    – mkorman
    Commented Jan 27, 2017 at 12:32

2 Answers 2


You can use a query to the Share object of your Custom object (Every Custom Object has its Share Object in the form: CustomObject__Share, you can consult it in this link). The query should look to something like this :

SELECT AccessLevel, ParentId, RowCause, UserOrGroupId FROM <YourCustomObject__Share> where UserOrGroupId = <YourUserId> and ParentId = <YourRecordId>

And you can also query for an object called : UserRecordAccess, you can see available fields here


Thanks to @ShravanBoddula

The book object was set to private in the OWD

To resolve this

Goto Setup -> Security controls -> Sharing Settings and set the Object to at least Public Read Only

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .