Requiring two-factor authentication in an organization
Last updated: 28 November 2026 · API v1 (beta)
The owner of an organization can require two-factor authentication (2FA) from its members. While the requirement is on, a member who has no two-factor authentication cannot reach the organization's resources.
Turn it on as the owner
- First set up 2FA on your own account: the Account settings page in the panel. If the owner has no 2FA of their own, the requirement cannot be turned on (
OWNER_TWO_FACTOR_REQUIRED). - In the "Two-factor authentication requirement" section of the Organization page in the panel, turn on the Require two-factor authentication for members option. To turn it off, switch the same option off.
What happens as a member
Organization requests from a member without 2FA are rejected with 403 and the code ORG_REQUIRES_TWO_FACTOR. The panel sends you to the 2FA setup on the account page.
API keys
API keys are checked too: a key is checked through the account of the user who created it. If the key's owner has no 2FA, requests made with the key return 403 ORG_REQUIRES_TWO_FACTOR. To keep CI keys from breaking, keep 2FA on in the account that created the key, or check the owners of these keys before you turn the requirement on.
The details field of the error response carries organizationId and setupPath. Retrying does not fix this code (4xx is permanent); the account owner must set up 2FA. See Error codes and API keys.