Evaluate Access Action

Evaluates a specified access check (user permission) against the current security context and returns whether the running user has the requested permission.

This action is available in API version 68.0 and later.

Supported REST HTTP Methods

URI
/services/data/v68.0/actions/standard/evaluateAccess
Formats
JSON, XML
HTTP Methods
GET
Authentication
Authorization: Bearer token

Inputs

Input Details
type
Type
String
Description
Required
The type of access check to evaluate. Supported value: UserPermission.
name
Type
String
Description
Required
The API name of the access check setting to evaluate.

Outputs

Output Details
isEnabled
Type
Boolean
Description
Indicates whether the access check evaluates to true for the current security context.

Example

Sample Request

1{
2          "inputs": [
3          {
4          "type": "UserPermission",
5          "name": "SkipLifeSciencesTriggerHandlers"
6          }
7          ]
8          }

Sample Response

1[
2          {
3          "actionName": "evaluateAccess",
4          "errors": null,
5          "isSuccess": true,
6          "outputValues": {
7          "isEnabled": true
8          }
9          }
10          ]