UserEntityAccess

Represents the access that the current user has to an object. Available in Tooling API version 34.0 and later.

Supported SOAP Calls

query(), search()

Supported REST HTTP Methods

GET

Fields

Field Details
DurableId
Type
string
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.
EntityDefinition
Type
EntityDefinition
Properties
Filter, Group, Nillable, Sort
Description
The entity definition for the object associated with this user entity access record. Because this field represents a relationship, use only in subqueries.
EntityDefinitionId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
ID of the EntityDefinition.
IsActivateable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
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.
IsCreatable
Type
boolean
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.
IsDeletable
Type
boolean
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.
IsEditable
Type
boolean
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.
IsFlsUpdatable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
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.
IsMergeable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If true, the user specified in the User field has access to merge records of the associated object type.
IsReadable
Type
boolean
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.
IsUndeletable
Type
boolean
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.
IsUpdatable
Type
boolean
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.
User
Type
User
Properties
Filter, Group, Nillable, Sort
Description
The user who has the access defined in this user entity access record, for the entity specified in the EntityDefinition field. Because this field represents a relationship, use only in subqueries.
UserId
Type
ID
Properties
Filter, Group, Nillable, Sort
Description
ID of the user specified in the User field.

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}