Get the current permissions of a user has to an object or field
Get the DurableId of the object
SELECT DurableId FROM EntityDefinition where QualifiedApiName = 'Candidate__c'
Suppose DurableId is 01I5g000002isOO
SELECT Id, IsCreatable, IsReadable,IsDeletable, IsEditable FROM UserEntityAccess where DurableId = '01I5g000002isOO.0055g00000AYpjXAAT'
Here 0055g00000AYpjXAAT is the user id
Output:
Id IsCreatable IsReadable IsDeletable IsEditable
000000000000000AAA true true true true
Comments
Post a Comment