Problem
When you accept an email invitation to an HCP Terraform organization, you may encounter an "Access Restricted" error with the following message:
The administrator for this organization requires MFA. Please setup MFA for this account or contact your administrator to regain access.
Cause
This error occurs when you are invited to an HCP Terraform organization that requires multi-factor authentication (MFA), but your user account does not have MFA enabled.
Solutions
To resolve this issue, you must configure MFA for your account. The specific procedure depends on how your account authenticates.
Solution 1: For Standalone HCP Terraform Accounts
If you have a standalone HCP Terraform account that was not created through the HCP portal, you must enable MFA directly in your HCP Terraform user settings.
Follow the instructions in the Enable Two-Factor Authentication documentation.
Solution 2: For HCP-linked Accounts
If your HCP Terraform account was created through the HashiCorp Cloud Platform (HCP) portal, you must configure MFA at the HCP account level.
Follow the instructions in the HCP MFA documentation.
Solution 3: For SSO-linked Accounts (e.g., GitHub)
If you authenticate to HCP Terraform using a Single Sign-On (SSO) provider like GitHub, you must configure MFA within that provider's security settings.
For GitHub accounts, follow the instructions in the Configuring two-factor authentication documentation.