UserFieldAccess

Represents the access that the current user has to a field.

Version 

Introduced in API version 34.0.

Supported SOAP API Calls 

describeSObjects(), query()

Supported REST API Methods 

Query

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.

FieldDefinitionId 

  • Type: string
  • Required: No
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 34.0

IsAccessible 

  • 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 the associated field.

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

  • Default value: false

IsUpdatable 

  • 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 the associated field.

  • 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

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

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