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. – Shravan Boddula Jan 27 '17 at 11:38
  • Why not post that as an answer, @ShravanBoddula? – mkorman Jan 27 '17 at 12:32

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

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.