> 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/configuration/server-settings/security/login-policies.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Login policies

Create Devolutions Server login policies that set the MFA requirement and the allowed MFA methods applied by sign-in workflows.

***Login policies*** set how multifactor authentication (MFA) applies to a sign-in. The sign-in workflow of the [conditional access policies](https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/security/conditional-access-policies.md) decides which login policy applies to each sign-in.

{% hint style="info" %}
Login policies are part of Devolutions Server 2027.1 and later. Before Devolutions Server 2027.1, the MFA requirement of a sign-in is set by the conditional access policies of the ***MFA*** target, in ***Administration*** – ***Server settings*** – ***Conditional access policies***. See [Conditional access policies](https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/security/conditional-access-policies.md#policy-list).
{% endhint %}

To manage them, go to ***Administration – Server settings – Login policies***. The list shows each policy's ***Name***, ***MFA requirement***, ***Allowed MFA methods***, ***Last modified*** and ***Last modified by***. The default login policy is marked ***Default***.

### Default login policy

The default login policy applies when a sign-in workflow allows the sign-in without choosing a login policy, with the ***Allow with the default login policy*** outcome ("Applies when a login workflow allows the sign-in without choosing a login policy."). It cannot be deleted ("The default login policy cannot be deleted."). To make another policy the default, open its ***More*** menu and select ***Set as default***, then confirm "'\<name>' will apply to every sign-in a login workflow allows without choosing a login policy."

{% hint style="info" %}
When Devolutions Server is upgraded from a version that used the former MFA policies, the ***Default policy*** login policy is created with the former default MFA action.
{% endhint %}

### Create or edit a login policy

1. In ***Administration – Server settings – Login policies***, click ***Add*** (plus icon), or open the ***More*** menu of a policy and select ***Edit***.
2. Enter a ***Name***.
3. Set the settings below.
4. Click ***Create*** or ***Save***.

<table><thead><tr><th width="220">SETTING</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>MFA requirement</strong></td><td><ul><li><em><strong>Not required</strong></em>: Users sign in without MFA, even when they have an MFA method configured.</li><li><em><strong>Optional</strong></em>: Users who have an MFA method configured must use it. Users without one sign in without MFA.</li><li><em><strong>Required</strong></em>: Users must use MFA. Users without an MFA method set one up when they sign in.</li></ul></td></tr><tr><td><strong>Allowed MFA methods</strong></td><td><ul><li><em><strong>All methods</strong></em>: Every MFA method enabled in <a href="https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/security/multifactor.md">Multifactor</a>, including the ones enabled later.</li><li><em><strong>Only these methods</strong></em>: Only the selected methods can be used or set up. Select at least one method.</li></ul></td></tr></tbody></table>

{% hint style="warning" %}
With ***Optional***, users whose only MFA methods are not in the allowed list sign in without MFA. With ***Required***, a policy whose allowed methods are not enabled on the server cannot be met, and password sign-ins that use it are denied. The form warns about both cases: "Users who only have MFA methods this policy doesn’t allow will sign in without MFA." and "This policy requires MFA, but none of the MFA methods it allows is available, so sign-ins that use it can’t complete MFA." In the list, a warning icon marks such a policy, with the same message as tooltip, and the message is added to the ***Set as default*** confirmation. In the workflow test results and policy choices, its allowed methods show ***No available MFA method***. With ***Only these methods*** and no method selected, the form shows "Select at least one MFA method."
{% endhint %}

Devolutions Server refuses to save a login policy change that would prevent your own user from signing in: "This change would prevent you from signing in: your login policy would require MFA, but none of the MFA methods it allows is available."

### Delete a login policy

Open the ***More*** menu of the policy and select ***Delete***. A login policy that a workflow applies cannot be deleted: Devolutions Server lists the workflows that use it ("This login policy is used by the following workflows. Change them to apply another policy first."). Change these workflows to apply another policy first.

{% hint style="info" %}
A workflow outcome can also define a ***Custom policy*** with the same settings, without creating a named login policy. See [Conditional access policies](https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/security/conditional-access-policies.md).
{% endhint %}


---

# 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/configuration/server-settings/security/login-policies.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.
