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/vXX.X/actions/standard/evaluateAccess

Where XX.X is the latest API version.

Formats: JSON, XML

HTTP Methods: GET

Authentication: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

Inputs 

InputTypeDescription
typeStringRequired
The type of access check to evaluate. Supported value: UserPermission.
nameStringRequired
The API name of the access check setting to evaluate.

Outputs 

OutputTypeDescription
isEnabledBooleanIndicates 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          ]