Troubleshooting user invitation issues in Terraform Enterprise
Problem
In Terraform Enterprise version v202001-1 and later, you can add a user to an organization through an invitation. When you send an invitation email, the user must create an account if they do not already have one and then accept the invitation.
When a user attempts to accept an expired invitation, they receive the following error message, even after an administrator resends the invitation.
Cause
Terraform Enterprise generates an invitation token that is valid for seven days. If the user does not accept the invitation within this period, the token expires.
When an administrator resends the invitation, Terraform Enterprise reuses the original expired token instead of generating a new one. This prevents the user from accepting the re-sent invitation through the standard workflow.
Solutions
Solution 1: Use the Link in the Warning Dialog
The invited user can bypass this issue by using the link provided within the error message itself.
- After attempting to accept the invitation and receiving the error, locate the warning dialog box shown in the screenshot above.
- Click the Create an account link inside the warning dialog.
This alternative link allows the user to proceed with creating their account and successfully join the organization.
Additional Information
For more details on user management, refer to the official Terraform Enterprise documentation on users, teams, and organizations.