UserEntityAccess

Represents the access that the current user has to an object.

Version 

Introduced in API version 34.0.

Supported SOAP API Calls 

describeSObjects(), query()

Supported REST API Methods 

Query

Limitations 

SOQL Limitations

SOSL Limitations

Fields 

DurableId 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: Unique identifier for the field. Always retrieve this value before using it, as the value isn’t guaranteed to stay the same from one release to the next. To simplify queries, use this field.

EntityDefinitionId 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Introduced: API version 34.0

  • Description: ID of the EntityDefinition.

IsActivateable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Introduced: API version 35.0

  • Description: If true, the user specified in the User field has access to activate records of the associated object type if the User owns them. For example, a user owns an Apex trigger or workflow rule, and can activate them if this field is true for ApexTrigger or WorkflowRule.

  • Default value: false

IsCreatable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Description: If true, the user specified in the User field has access to create records of the associated object type.

  • Default value: false

IsDeletable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Description: If true, the user specified in the User field has access to delete records of the associated object type.

  • Default value: false

IsEditable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Description: If true, the user specified in the User field has access to edit records of the associated object type.

  • Default value: false

IsFlsUpdatable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Introduced: API version 35.0

  • Description: If true, the user specified in the User field has access to change field-level security settings on appropriate fields of the associated object type. For example, an administrator could deny a group of users access to the Type field on Account.

  • Default value: false

IsMergeable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Introduced: API version 35.0

  • Description: If true, the user specified in the User field has access to merge records of the associated object type.

  • Default value: false

IsReadable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Description: If true, the user specified in the User field has access to view records of the associated object type.

  • Default value: false

IsUndeletable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Description: If true, the user specified in the User field has access to undelete records of the associated object type.

  • Default value: false

IsUpdatable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Introduced: API version 35.0

  • Description: If true, the user specified in the User field has access to edit records of the associated object type.

  • Default value: false

UserId 

  • Type: reference

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Introduced: API version 34.0

  • Description: ID of the user specified in the User field.

  • Relationship name: User

  • Relationship type: relationship

  • Refers to: User

Usage 

Queries on UserEntityAcces need filters on both the entity side and the user side.

Example: Entity Side

1SELECT EntityDefinition.QualifiedApiName, EntityDefinition.MasterLabel 
2FROM UserEntityAccess WHERE UserId={current_user_id} 
3AND IsCreateable=true AND EntityDefinition.IsCustomizable=true

Example: User Side

1UserId={current_user_id}

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!