# Self Review Prevention

Enable or disable self-review prevention. When self-review prevention is enabled, users are prevented from being assigned as reviewers for rows that relate to their own access and permissions.

## Parameters

The value can be either an integer or string:

* `SELF_REVIEWER_CHECKING_DISABLED` = 1 (or `"SELF_REVIEWER_CHECKING_DISABLED"` as string)
* `SELF_REVIEWER_CHECKING_ENABLED` = 2 (or `"SELF_REVIEWER_CHECKING_ENABLED"` as string)

An optional `workflow_id` parameter allows configuring self-review prevention per review configuration, overriding the global setting for that configuration. When `workflow_id` is omitted, the request reads or writes the global setting.

## Examples

**Example using string value (global):**

```json
{
    "value": "SELF_REVIEWER_CHECKING_DISABLED"
}
```

**Example using integer value (global):**

```json
{
    "value": 1
}
```

**Example enabling self-review prevention for a specific review configuration:**

```json
{
    "value": "SELF_REVIEWER_CHECKING_ENABLED",
    "workflow_id": "8ae1c414-3a76-46cb-950a-925316b3f264"
}
```

When a `workflow_id` is provided on a GET request, Veza returns the configuration-specific setting if one exists, or falls back to the global setting.

**Example GET request (per review configuration):**

```bash
curl -L -X GET 'https://your-organization.vezacloud.com/api/private/workflows/access/global_settings/self_reviewer_settings?workflow_id=8ae1c414-3a76-46cb-950a-925316b3f264' \
  -H 'Authorization: Bearer YOUR_SECRET_TOKEN'
```

**Example cURL request (global):**

```bash
curl -L -X PUT 'https://your-organization.vezacloud.com/api/private/workflows/access/global_settings/self_reviewer_settings' \
  -H 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "value": 1
  }'
```

**Example cURL request (per review configuration):**

```bash
curl -L -X PUT 'https://your-organization.vezacloud.com/api/private/workflows/access/global_settings/self_reviewer_settings' \
  -H 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "value": 2,
    "workflow_id": "8ae1c414-3a76-46cb-950a-925316b3f264"
  }'
```

## Get Self Review Settings

{% openapi src="/files/ers611LIum35cy5f6yME" path="/api/private/workflows/access/global\_settings/self\_reviewer\_settings" method="get" %}
[access-review-global-settings.yaml](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-90ec0f1a7530bafd49ea3cf60a51dcde5d90d916%2Faccess-review-global-settings.yaml?alt=media)
{% endopenapi %}

## Set Self Review Settings

{% openapi src="/files/ers611LIum35cy5f6yME" path="/api/private/workflows/access/global\_settings/self\_reviewer\_settings" method="put" %}
[access-review-global-settings.yaml](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-90ec0f1a7530bafd49ea3cf60a51dcde5d90d916%2Faccess-review-global-settings.yaml?alt=media)
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/workflows/access-review-settings/selfreviewprevention.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
