---
schema_version: "1"
id: c069e427eaebe84fc330c7c12f4b45bc77239cf9d38bcd1a548f68c879479e43
title: UserFieldAccess
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_userfieldaccess.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_userfieldaccess.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0a9f60d93563dc117da664a4c40c9683f8f9ef791e478bd68e33813c4210218c
description: Represents the access that the current user has to a field. Available in Tooling API version 34.0 and later.
---
# UserFieldAccess

Represents the access that the current user has to a field. 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. 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.



 |
| EntityDefinitionId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

ID of the EntityDefinition.



 |
| IsAccessible | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

If true, the user specified in the User field has access to view the associated field.



 |
| 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 field.



 |
| IsUpdatable | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

If true, the user specified in the User field has access to edit the associated field.



 |
| User | 

Type

[User](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_user.htm#tooling_api_objects_user "Represents a user. You can retrieve standard fields on User with the Tooling API, but custom fields can’t be retrieved.")

Properties

Filter, Group, Nillable, Sort

Description

The user who has access defined in this user field 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.



 |

## SOQL Limitations

This object doesn't support some SOQL operations.

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

INCLUDES

Example Query: SELECT ComplianceGroup FROM FieldDefinition WHERE EntityDefinitionId = 'Account' AND ComplianceGroup includes('GDPR')

Error Returned: Unsupported filter type