Please Note :
Not for Current Logged in User
How to find a particular user A has what access on particular object (Read or Create access) say on Account Via Apex Class.
Please Note :
Not for Current Logged in User
How to find a particular user A has what access on particular object (Read or Create access) say on Account Via Apex Class.
I believe this information is what you want:
How to access profile permissions via API
Basically you will need to query the ObjectPermissions sObject since every profile has at least one underlying Permission set
SELECT Id, SObjectType, PermissionsRead, PermissionsCreate
FROM ObjectPermissions
WHERE parentid in (select id from permissionset where
PermissionSet.Profile.Name = 'System Administrator')