> For the complete documentation index, see [llms.txt](https://docs.guestway.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guestway.io/account-and-administration/holding-settings/how-to-require-two-factor-authentication.md).

# How to require two-factor authentication

This guide shows you how to make two-factor authentication required for some or all roles in every organization of your holding.

{% hint style="info" %}
**Before you start**

* You are an owner of the holding.
  {% endhint %}

{% hint style="warning" %}
When you turn this on, you and all other holding owners must also set up two-factor authentication.
{% endhint %}

## Choose the roles

{% stepper %}
{% step %}

### Open the holding settings

Go to **Settings** → **Holding** → **General**.
{% endstep %}

{% step %}

### Choose who needs it

Under **Enforce 2FA For Organization Roles**, turn on **All roles**.

If only some roles need it, leave **All roles** off and choose the roles in **Select roles**.

{% hint style="success" %}
Require two-factor authentication at least for the roles that can manage users and roles.
{% endhint %}
{% endstep %}

{% step %}

### Save the rule

On the **Settings** card, click **Update**. You see *Holding settings updated successfully.*
{% endstep %}
{% endstepper %}

Users with these roles set up two-factor authentication right after their next login. See [How to turn on two-factor authentication](https://docs.guestway.io/account-and-administration/your-profile/how-to-turn-on-two-factor-authentication.md).

## Help a user who lost their phone

A holding owner can reset the two-factor authentication of a user, so the user can log in and set it up again. See [How to reset two-factor authentication for a user](https://docs.guestway.io/account-and-administration/holding-settings/how-to-reset-two-factor-authentication-for-a-user.md).

## Related

* [Holding settings](https://docs.guestway.io/account-and-administration/holding-settings.md#general)
* [How to turn on two-factor authentication](https://docs.guestway.io/account-and-administration/your-profile/how-to-turn-on-two-factor-authentication.md)
* [How to reset two-factor authentication for a user](https://docs.guestway.io/account-and-administration/holding-settings/how-to-reset-two-factor-authentication-for-a-user.md)
* [Users and roles](https://docs.guestway.io/account-and-administration/users-and-roles.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.guestway.io/account-and-administration/holding-settings/how-to-require-two-factor-authentication.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.
