AWS switch role “Invalid information in one or more fields. Check your information or contact your administrator”

You are trying to switch roles in the AWS Console using the role “OrganizationAccountAccessRole” but get the error “Invalid information in one or more fields. Check your information or contact your administrator”.

The role “OrganizationAccountAccessRole” is only added automatically if the account was created from AWS Organizations. If instead you have invited a pre-existing AWS account to join an org you have to create the “OrganizationAccountAccessRole” manually and specify “Another AWS Account” and the account ID of the account used to assume the role from.

Official instructions here: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html