Is there any API through which I can get a user's access level and record level privileges? First, I want to check if a user has access to a specific entity, and then I want to check what documents a user can access out of all the records in that entity.