> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/pam/pam-with-devolutions-server/just-in-time-jit-elevation.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Just-in-time (JIT) elevation

Configure just-in-time elevation in Devolutions Server to grant Domain accounts temporary Active Directory group membership for privileged access.

Just-in-time elevation is a security concept that pertains to providing temporary access to resources or services, ensuring that permissions are granted only for the specific time they are required and not a moment more. The Just-in-time feature in Devolutions Server grants temporary membership to selected Active Directory groups from a specified list.

{% embed url="<https://youtu.be/VDNiaZT9yoQ?start=124>" %}

{% hint style="warning" %}
The **Just-in-time elevation** feature is available for accounts of ***Domain user*** and ***Entra ID user*** providers (temporary group membership) and of ***Local SSH user*** providers (temporary sudo rights, set with Linux privilege sets as described below).
{% endhint %}

The elevation is granted when the checkout becomes active and removed at check-in or when the checkout expires. When a checkout is extended, the elevation is extended to the new end time. If the elevation cannot be removed, the checkout goes to the ***Revoking*** status and the account is locked until the scheduler service succeeds (see [Checkout statuses](https://docs.devolutions.net/pam/pam-with-devolutions-server/checkout-process.md#checkout-statuses)).

## Provider settings

The JIT elevation settings are on the provider, in ***Administration*** – ***Privileged access management (PAM)*** – ***Providers***. Save a new provider first: "Save the provider first to access these settings."

#### Just-in-time (JIT) elevation

<table><thead><tr><th width="300">OPTION</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Select provider privileges to be available for temporary elevation</strong></td><td>Select the Active Directory groups of which a privileged account will be elevated to member status. Click on the pen icon next to a selected group to assign a Devolutions Server display name to it (<em><strong>Add DVLS display name</strong></em> or <em><strong>Edit DVLS display name</strong></em>). Click <em><strong>Select provider privileges</strong></em> to choose the groups, and <em><strong>Remove</strong></em> to take one out. Without any group: "No provider privileges selected" – "Select the provider privileges to make available for temporary elevation during account checkouts".</td></tr><tr><td><strong>Enable privilege sets</strong></td><td>Create privilege sets to group similar privileges together by assigning provider privileges and privileged accounts. "To ease the assignment of available JIT privilege elevations to accounts, create privilege sets to group similar privileges together."</td></tr><tr><td><strong>Assign privilege sets to privileged accounts</strong></td><td>Limit each privilege set to the privileged accounts listed in its <em><strong>Assigned privileged accounts</strong></em>.</td></tr><tr><td><strong>JIT privilege sets</strong></td><td>The list of privilege sets. Each set has a <em><strong>Privilege set name</strong></em> (required) and its <em><strong>Assigned provider privileges</strong></em>. Click <em><strong>Add privilege set</strong></em> to add one, <em><strong>Delete</strong></em> to remove one. In the group list, <em><strong>Assign group subset</strong></em> assigns a group to sets ("{0} sets selected").</td></tr><tr><td><strong>Enforce privilege sets</strong></td><td>Devolutions Server 2027.1 and later. "When off, checkout also offers the provider's other authorized groups"</td></tr></tbody></table>

#### Advanced

<table><thead><tr><th width="300">OPTION</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Temporary group name prefix (max: 27 characters)</strong></td><td>Prefix of the Active Directory group name to be created, which will be a member of the selected group and in which the privileged account will be a member. Up to 27 characters.</td></tr><tr><td><strong>Temporary group creation location</strong></td><td>Location (OU) where the temporary Active Directory group will exist in the Active Directory structure. Click the pen button to browse the domain containers, or the clear button to empty the field.</td></tr><tr><td><strong>JIT account creation location</strong></td><td>OU where accounts created by JIT provisioning are created. See <a href="https://docs.devolutions.net/pam/knowledge-base/how-to-articles/create-temporary-accounts-with-jit-provisioning.md">Create temporary accounts with JIT provisioning</a>.</td></tr><tr><td><strong>Replication latency</strong></td><td>Some domains may require additional time to apply permissions. Introducing latency helps prevent sessions from opening too quickly, which could result in a failure. From 0 to 1000 seconds.</td></tr></tbody></table>

For a ***Domain user*** provider, the temporary group is created with a time to live that matches the end of the checkout, so Active Directory removes it on its own if the check-in cannot. An extension refreshes this time to live. For an ***Entra ID user*** provider, the account is added directly to the selected groups and removed from them at check-in.

#### Example

The domain provider Just-in-time elevation configuration will allow privileged accounts to request elevation, i.e., to become a temporary member of the following Active Directory groups: Remote Desktop Manager Admins; Remote Desktop Manager Service Desk or Remote Desktop Manager Admins - Universal. The temporary group name will start with RDM\_JIT and will be created in the **Domain Groups\Vaults\Internal** OU.

The \_backupoperator15 privileged account checkout process is requesting a 2 hours elevation to be part of the Remote Desktop Manager Admins Active Directory group.

## Request an elevation at checkout

In the checkout window, the ***JIT privilege elevation*** field lists the groups (or the privilege sets) that the provider makes available to the account. Groups set as defaults on the PAM account, or on the session entry that uses it, are preselected. The field is required for an account created by JIT provisioning. See [Request checkout](https://docs.devolutions.net/pam/pam-with-devolutions-server/checkout-process/request-checkout.md).

* With the checkout policy ***Approval mode*** set to ***Mandatory on JIT elevation only***, only the checkouts that request an elevation need approval. The reason, ticket number and MFA modes offer the same ***Mandatory on JIT elevation only*** choice.
* While the request is pending, an approver can change the requested groups.
* A request that contains groups the provider does not authorize is refused: "Request contains unauthorized groups with IDs: {0}."

When the elevation fails, the checkout shows "An error occurred while trying to grant privileged rights.", "An error occurred while trying to revoke privileged rights.", "User not found on the domain" or "An error has occurred. Domain or user unreachable or invalid credentials."

## Linux privilege sets (sudo elevation)

Accounts of a ***Local SSH user*** provider can receive temporary sudo rights. The rules are defined as Linux privilege sets in ***Administration*** – ***Privileged access management (PAM)*** – ***Linux privilege sets***. The page requires the permission to view JIT templates; adding, editing and deleting require the matching JIT template permissions.

The list shows the ***Name***, a ***Preview*** of the sudoers rule and whether the set is the default one. A built-in set always exists: it can be set as default but not edited or deleted. With no set: "No template available."

<table><thead><tr><th width="220">FIELD</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Required: "The name is required".</td></tr><tr><td><strong>Set as default</strong></td><td>Use this set when a checkout requests sudo access without choosing a set.</td></tr><tr><td><strong>Host list</strong></td><td>"Specify the hosts where the privileges apply. Use 'ALL' for all hosts, or comma-separated hostnames (e.g., 'server1, server2')." Default: <code>ALL</code>.</td></tr><tr><td><strong>Run as</strong></td><td>"Define which users the privileged account can run commands as. Use 'ALL' for all users, or specify usernames (e.g., 'root, admin')." Default: <code>(ALL)</code>.</td></tr><tr><td><strong>Tags</strong></td><td>"Sudoers tags that modify command execution behavior (e.g., NOPASSWD, NOEXEC, SETENV)". Default: <code>NOPASSWD</code>.</td></tr><tr><td><strong>Commands</strong></td><td>"Commands allowed for this rule (e.g., /usr/bin/systemctl, /bin/ls, or ALL for all commands)". At least one command; <em><strong>Add command</strong></em> adds a line. Default: <code>ALL</code>.</td></tr></tbody></table>

The built-in set uses the default values: `ALL=(ALL) NOPASSWD: ALL`. Each field accepts up to 500 characters ("The {0} must have no more than {1} characters."), made of letters, digits, spaces and the characters `( ) = , : / _ * - [ ] . @ " '`. Line breaks, `;`, `&`, `|`, backticks, `$` and `..` are refused: "Property {0} value contains one or more illegal characters: {1}". The preview below the fields shows the resulting rule.

On the ***Local SSH user*** provider, select the Linux privilege sets that its accounts may request. The built-in set is always available.

At checkout, select ***Request sudo access*** and choose a set in ***Linux privilege sets*** (the default set is preselected). When the requested set no longer exists: "Selected privilege not found" – "Unable to find the requested privilege. Default ({0}) will be used." A set the provider does not authorize is refused: "{0} is not authorized for this provider."

When the checkout becomes active, Devolutions Server connects to the host over SSH with the provider credentials and writes a rule for the account in a file of `/etc/sudoers.d` whose name starts with `devolutions-jit`. The rule is limited to the checkout time frame with `NOTBEFORE` and `NOTAFTER`, the file is set to mode 440 and checked with `visudo`. At check-in, the file is removed. Errors: "Failed to grant sudo access." and "Failed to revoke sudo access."

#### See also

* [Decoding just-in-time (JIT) elevation](https://blog.devolutions.net/2025/01/decoding-just-in-time-jit-elevation/)
* [JIT privilege elevation made efficient by Devolutions](https://blog.devolutions.net/2025/01/jit-privilege-elevation-made-efficient-by-devolutions/)
* [JIT elevation not revoking privileges for users](https://docs.devolutions.net/pam/knowledge-base/troubleshooting-articles/jit-elevation-not-revoking-privileges-for-users.md)
* [Elevate management tools with a privileged account](https://docs.devolutions.net/pam/knowledge-base/how-to-articles/elevate-management-tools-with-a-privileged-account.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/pam/pam-with-devolutions-server/just-in-time-jit-elevation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
