You need to sign in to do that
Don't have an account?

How to find out if current user has 'read all access' to an sobject
Is it possible to write apex code to see if the current user has 'read all access' (not just accessibility, which is 'read' access to records he or his subordinates own).
To check for read access to Account objects, for example, you do this:
boolean mayAccessAccounts = Schema.sObjectType.Account.isAccessible();
Is it necessary to check the user's profile for the 'read all access' capability (I assume there is code to do that but I haven't found any), and also check the various permission sets for him to see if any of them have it? Seems like a simpler API should exist...
Example usage:
All Answers
Example usage: