function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ShamilShamil 

Detect 'View All' object permission through API

Hello,

 

Is there any way to determine if a user has 'View all' object permission using Salesforce API?

 

Example: user has Read, Create, Edit, Delete, and View All permission for Account.

I can detect the first 4 permissions through API, but don't know how to get the 'View All' permission.

 

Is there any way of doing this?

atormanatorman

Are you using the data API or the metadata API?

 

Profile object permissions are supported in the metadata API (click here for definition).

 

What code are you using to access the four basic object permission bits through the API?