You may be in a situation to verify object permission details for all or specific profile. So you may check object details from UI one by one by navigating each profile, and this will be time-consuming. Instead, you can fetch details by querying ObjectPermission. Here is the example,
Query specific object permission for all Profiles:
You can check all object level permission in the query. Such as,
PermissionsRead
PermissionsCreate
PermissionsEdit
PermissionsDelete
PermissionsViewAllRecords
PermissionsModifyAllRecords
The below approach also works but the profile name will be displayed as [Object Object] in Query Editor,
Reference:
Stackexchange
Object Permission
Query specific object permission for all Profiles:
- SELECT Profile.Name FROM PermissionSet WHERE IsOwnedByProfile = TRUE AND Id IN (SELECT ParentId FROM ObjectPermissions WHERE PermissionsRead = TRUE AND SObjectType = 'CustomObject__c') ORDER BY Profile.Name
You can check all object level permission in the query. Such as,
PermissionsRead
PermissionsCreate
PermissionsEdit
PermissionsDelete
PermissionsViewAllRecords
PermissionsModifyAllRecords
The below approach also works but the profile name will be displayed as [Object Object] in Query Editor,
- SELECT Parent.Profile.Name FROM ObjectPermissions WHERE Parent.IsOwnedByProfile = TRUE AND SObjectType = 'CustomObject__c'
Reference:
Stackexchange
Object Permission
Hello Bro
ReplyDeleteif you are looking for php tutorial then you may click here
Awesome Post Keep it Up , Best Tutorials for Online Learners php tutorials
ReplyDeleteVery Good Information
ReplyDeletePHP Tutorial
What is PHP
How to Install PHP
PHP Examples
PHP Echo
PHP Print
PHP Variables
PHP Constants
It is very helpful & Also learn Node.js Express tutorials
ReplyDeleteI need to get case object record type profile access. Can you share the query ?
ReplyDeleteQUICK EASY EMERGENCY URGENT LOANS LOAN OFFER EVERYONE APPLY NOW +918929509036 financialserviceoffer876@gmail.com Dr. James Eric
ReplyDelete