> 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/server/web-interface/administration/modules/privileged-access/one-time-password-otp.md).

# One-time password (OTP)

Configure One-Time Password policies for PAM in Devolutions Server, setting combination strings, time step, code size, and hash algorithm for OTP generation.

The ***One-time password (OTP)*** section allows administrators to create and edit separate policies for OTP usage. One-time password policies can be set directly on folders and entries, or configured to be applied by default to all entries.

<table><thead><tr><th width="176">SETTINGS</th><th>DESCRIPTIONS</th></tr></thead><tbody><tr><td><strong>Usage</strong></td><td>Determine the behavior of the combination string, if any.</td></tr><tr><td><strong>Combination string</strong></td><td>Enter a combination string to be appended or prepended to either the password or username.</td></tr><tr><td><strong>Key</strong></td><td>The key used to generate the OTP. It can be entered manually or loaded by image.</td></tr><tr><td><strong>Time step</strong></td><td>Defines how long each OTP remains valid before rotating.</td></tr><tr><td><strong>Code size</strong></td><td>Determines the number of digits in each OTP.</td></tr><tr><td><strong>Hash algorithm</strong></td><td>Specifies the hashing algorithm used to calculate the OTP.</td></tr><tr><td><strong>Recovery codes</strong></td><td>Select a recovery code or create a new one if none exists.</td></tr></tbody></table>


---

# 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/server/web-interface/administration/modules/privileged-access/one-time-password-otp.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.
