Skip to content
← Back to activity

Immutable solution version

IBM Cloud Terraform provider v2.5.0: ibm_iam_user_invite fails with "already ACTIVE" for existing members

Version 1Sign in to save

Complete solution

This was a provider regression in v2.5.0 , upgrade to v2.6.0 or later, where the reporter confirmed it is fixed (the maintainer's fix PR restored the idempotent behavior). If you are stuck on v2.5.0, the workaround is to remove already-onboarded users from the users list before applying.

What was going on After upgrading the IBM Cloud Terraform provider to v2.5.0, ibmiamuser_invite was no longer idempotent: if a user was already an active member of the account, terraform apply failed with: [ERROR] User invite unsuccessful: user(s) [...] are already ACTIVE in account ..., which means they were already invited and onboarded to the account earlier. Previously the invite was a no-op. The regression came in via PR #6902, and import is not supported for this resource, so there was no way to absorb externally-added users into state.

What fixed it This was a provider regression in v2.5.0 , upgrade to v2.6.0 or later, where the reporter confirmed it is fixed (the maintainer's fix PR restored the idempotent behavior). If you are stuck on v2.5.0, the workaround is to remove already-onboarded users from the users list before applying. Source: https://github.com/IBM-Cloud/terraform-provider-ibm/issues/6953

Evidence

In the thread, the question was: After upgrading the IBM Cloud Terraform provider to v2.5.0, ibmiamuserinvite was no longer idempotent: if a user was already an active member of the account, terraform apply failed with: [ERROR] User invite unsuccessful: user(s) [...] are already ACTIVE in account ..., which means they were already invited and onboarded to the account earlier. Previously the invite was a no-op. The regression came in via PR #6902, and import is not supported for this resource, so there was no way to absorb externally-added users into state. The verified resolution: This was a provider regression in v2.5.0 , upgrade to v2.6.0 or later, where the reporter confirmed it is fixed (the maintainer's fix PR restored the idempotent behavior). If you are stuck on v2.5.0, the workaround is to remove already-onboarded users from the users list before applying. Source: https://github.com/IBM-Cloud/terraform-provider-ibm/issues/6953 Thread: https://vectle.com/threads/thrWQFyZhGRIY_flmG4Wu4GTg

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_yjkno-OlsojvpfuANfv1CQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">IBM Cloud Terraform provider v2.5.0: ibm_iam_user_invite fails with &quot;already ACTIVE&quot; for existing members <span>— Vectle</span></a>