> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/pam/administration/access/approvals.md).

# Approval workflows

How a privileged action is held until someone releases it — the four rules that can require approval, who may decide, and where the decision is recorded.

## What this is and when to use it

An approval workflow holds a privileged action until a designated person releases it. The requester waits, the approver is notified, and the decision is recorded for auditing.

There is no single "approvals" screen. **Approval is a setting on the rule that governs the action**, so where you turn it on depends on what you want held:

| What is held                         | Where you turn it on                                                                                                                                |
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| Access to an account on an asset     | The **approval** setting on an [authorization](https://wiki.datadike.com/pam/administration/access/authorizations.md), per account or account group |
| Sign-in to the console               | A user login rule with the **Review** action — see [Login policies](https://wiki.datadike.com/pam/administration/access/login-policies.md)          |
| A connection to a specific asset     | An asset connect rule with the **Review** action, under **Policies › Asset connect**                                                                |
| A command typed in a session         | A command filter with the **Review** action — see [Command inspection](https://wiki.datadike.com/pam/administration/access/command-filtering.md)    |
| Access the user does not have at all | A request raised by the user — see [Just-in-time access](https://wiki.datadike.com/pam/administration/access/just-in-time.md)                       |

Use approval where a standing grant is too much but a hard block is too little: production databases, domain controllers, out-of-band consoles, third-party accounts.

{% hint style="danger" %}
**You cannot approve your own access.** Even if your profile is administrator and you are listed as an approver on the rule, the solution will not let you release a request you raised. Always designate at least one other approver, or the access is unusable in practice.
{% endhint %}

## Before you start

* The **SYSADMIN** profile to configure the rule.
* At least one approver who is **not** the person who will be requesting.
* Email or SMS notification configured under **System settings › Notifications**. Approval requests are announced to the credential owners by email or SMS; with no transport configured, requests sit unnoticed.

## Where approval is configured

### Access to an account

On an authorization, each **account** or **account group** is granted in one of two ways:

* **Without approval** — access is released directly to the authorized user.
* **With approval** — access requires one or more approvers before it is released.

The **number of approvers** and who they are is configurable per account or account group. Two or more approvers gives you dual custody: no single person can release the credential.

### Console sign-in

A user login rule set to **Review** holds the sign-in itself. The user is told that approval is required and waits; the approver is notified and may approve, reject, or ask for more information; the decision is recorded.

### A connection to an asset

An asset connect rule set to **Review** holds a specific connection rather than the sign-in. Configure it under **Policies › Asset connect**, scoping the rule by users, assets, accounts, and time, and setting **Action** to **Review**.

Like all rules of this kind it carries a **Priority** from 1 to 100, default 50, and **the lower number is evaluated first**. A permissive rule with a smaller number will match before your Review rule and the approval will never be asked for.

### A command in a session

A command filter set to **Review** queues the command for approval instead of running or rejecting it. The session waits while the approver decides.

## Steps

1. Decide which action you want held — access to a credential, a sign-in, a connection, or a command. That decides which rule you edit.
2. Open the rule and set approval:
   * on an authorization, switch the account or account group to require approval and set the number of approvers
   * on a login, asset connect, or command filter rule, set **Action** to **Review**
3. Name the approvers. Include someone other than the expected requesters.
4. On login, asset connect, and command filter rules, check the **Priority** against the other rules that could match the same attempt.
5. Save, and confirm the rule is **Active**.

## What you should see

Nothing changes on the rule list beyond the action or approval setting. The workflow becomes visible only when someone triggers it: the requester's action is held with a message saying approval is required, and the pending item appears for the approver — under **Cockpit › To approve** for access requests.

## How to verify it worked

Approval is one of the few features you cannot verify from a single account. You need two: a requester and an approver.

1. As a user covered by the rule, trigger the action — open the asset, sign in, or type the command.
2. The action must be **held**, not allowed and not refused. If it goes through, the rule did not match; check its scope and its priority.
3. As the approver, from a **different** account, find the pending request and decide it.
4. Confirm the outcome matches the decision: approved lets the action proceed, rejected leaves it blocked.
5. Open **Audit › Sessions › Requests** and confirm the request and its decision are both recorded. The **Approvals / access requests** report gives the same data over a period — see [Reports](https://wiki.datadike.com/pam/administration/audit/reports.md).

Step 5 is the part that matters for compliance. A workflow that releases access but records nothing is worse than no workflow, because it looks like a control.

## Common errors

| Symptom                                                    | Cause                                                                                   | Fix                                                                                                                        |
| ---------------------------------------------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| The approver is never notified                             | No email or SMS transport configured                                                    | Configure notifications under **System settings › Notifications**                                                          |
| Nothing is held — the action just succeeds                 | The rule did not match, or a permissive rule with a lower priority number matched first | Check the rule's user, asset, and account scope, then compare priorities across all rules that could match                 |
| I am an approver but cannot release my own request         | Self-approval is not permitted, administrator or not                                    | Have another approver decide                                                                                               |
| Access reaches more people than the approval rule expected | Two authorizations cover the same asset, and **the least restrictive one wins**         | Find the other authorization — see [Authorizations](https://wiki.datadike.com/pam/administration/access/authorizations.md) |
| Access was approved, then the session ended by itself      | The authorization's validity period expired while the session was open                  | Sessions are terminated automatically at expiry. Extend the period or raise a new request                                  |
| A request was approved but the user still sees nothing     | The grant was temporary and has already expired                                         | Check the request's validity, not the authorization                                                                        |

## Field reference

| Setting             | Where                                               | What it does                                                       |
| ------------------- | --------------------------------------------------- | ------------------------------------------------------------------ |
| Approval required   | Authorization, per account or account group         | Holds access until an approver releases it                         |
| Number of approvers | Authorization, per account or account group         | 1 for simple approval, 2 or more for dual custody                  |
| Action = Review     | User login, asset connect, and command filter rules | Holds the sign-in, the connection, or the command pending approval |
| Priority            | User login, asset connect, and command filter rules | 1 to 100, default 50. Lower is evaluated first                     |
| Active              | All rules                                           | Whether the rule is in force                                       |

## Related pages

* [Authorizations](https://wiki.datadike.com/pam/administration/access/authorizations.md) — where access approval and the number of approvers are set
* [Just-in-time access](https://wiki.datadike.com/pam/administration/access/just-in-time.md) — requesting access you do not have
* [Login policies](https://wiki.datadike.com/pam/administration/access/login-policies.md) — the **Review** action on sign-in
* [Command inspection](https://wiki.datadike.com/pam/administration/access/command-filtering.md) — the **Review** action on a command
* [Reports](https://wiki.datadike.com/pam/administration/audit/reports.md) — the approvals and access-requests report
