Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
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 |
|
| EntityDefinition |
|
| EntityDefinitionId |
|
| IsActivateable |
|
| IsCreatable |
|
| IsDeletable |
|
| IsEditable |
|
| IsFlsUpdatable |
|
| IsMergeable |
|
| IsReadable |
|
| IsUndeletable |
|
| IsUpdatable |
|
| User |
|
| UserId |
|
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=trueExample: User
Side
1UserId={current_user_id}