---
schema_version: "1"
id: 0f2e020dfbe6e6c504399471d0c942c9f41e8c8d411d1d085a8d55079d33885f
title: UserSetupEntityAccess
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_usersetupentityaccess.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_usersetupentityaccess.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 89b6c09a0edac819007674a3974cae4fb0f8647725b4c48c090ee3e228622090
description: Represents the enabled custom permissions of the running user. This object is available in API version 48.0 and later.
---
# UserSetupEntityAccess

Represents the enabled custom permissions of the running user. This object is available in API version 48.0 and later.

## Supported Calls

describeSObjects(), query()

## Fields

| Field | Details |
| --- | --- |
| DeveloperName | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

The unique name of the custom permission in the API.

In managed packages, this field prevents naming conflicts on package installations. With this field, a developer can change the object’s name in a managed package and the changes are reflected in a subscriber’s organization.





 |
| DurableId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

This field isn't used.



 |
| KeyPrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The first 3 characters of the SetupEntityId.



 |
| LastCacheUpdate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The last modified date and time of the running user's info.



 |
| NamespacePrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The namespace prefix that’s associated with the custom permission. Each Developer Edition org that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix\_\_componentName notation.

The namespace prefix can have one of the following values.

- In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the org for all objects that support it, unless an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition org of the package developer.
- In orgs that are not Developer Edition orgs, NamespacePrefix is set only for objects that are part of an installed managed package. All other objects have no namespace prefix.





 |
| SetupEntityId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The ID of the custom permission assigned to the user.



 |

## Usage

API users without the View Setup and Configuration permission can use this object to check their assigned custom permissions.