Newer Version Available

This content describes an older version of this product. View Latest

UserEntityAccess

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

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. Use this field to simplify queries.
EntityDefinition
Type
EntityDefinition
Properties
Filter, Group, Nillable, Sort
Description
The entity definition for the object associated with this user entity access record.
EntityDefinitionId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
ID of the EntityDefinition.
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.
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.
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.
UserId
Type
ID
Properties
Filter, Group, Nillable, Sort
Description
ID of the user specified in the User field.

SOQL Limitations

This object doesn't support some SOQL operations.

COUNT()
Example Query: SELECT COUNT() FROM EntityDefinition
Error Returned: The "DurableId" field is of type number, but the value from the external data source is "Account.SearchResult". Contact your administrator for help.
GROUP BY
Example Query: SELECT COUNT(qualifiedapiname), isfeedenabled FROM EntityDefinition GROUP BY isfeedenabled
Error Returned: The requested operation is not yet supported by this SObject storage type, contact salesforce.com support for more information.
LIMIT, LIMIT OFFSET
Example Queries:
SELECT qualifiedapiname FROM EntityDefinition LIMIT 5
SELECT qualifiedapiname FROM EntityDefinition LIMIT 5 OFFSET 10
An incorrect result is returned because LIMIT and LIMIT OFFSET are ignored.
NOT
Example Query: SELECT qualifiedapiname FROM EntityDefinition WHERE qualifiedapiname!='Account'
Error Returned: Only equals comparisons permitted
OR
Example Query: SELECT qualifiedapiname, keyprefix FROM EntityDefinition WHERE isdeletable=true OR (isfeedenabled=false AND keyprefix='01j')
Error Returned: Disjunctions not supported