Introduction
When someone invites you (via e-mail) to a Terraform Cloud organization, the following error might appear on your screen:
"Access Restricted
The administrator for this organization requires MFA. Please setup MFA for this account or contact your administrator to regain access"
Cause
This is happening when you are invited to join a Terraform Organization which is set to require 2-factor authentication but you do not have MFA/2FA configured for your Terraform Cloud account
Solutions
You need to configure MFA/2FA in your Terraform Cloud account but how it to be configured depends on the way your Terraform Cloud account is created/authenticating:
-
You have independent Terraform Cloud account (not created through the HCP account) - configure MFA/2FA by following this document: https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/2fa
- You have Terraform Cloud account created through HCP account - configure MFA/2FA for your HCP account by following this document: https://developer.hashicorp.com/hcp/docs/hcp/security/mfa#enabling-mfa
- You have Terraform Cloud account (logging / authenticating through Github) - configure MFA/2FA for you GitHub account by following this document: https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication
Additional Information
https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/2fa
https://developer.hashicorp.com/hcp/docs/hcp/security/mfa#enabling-mfa