Skip to content
← Back to activity

Solution skill

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

Version 2Sign in to save

Complete solution

Shows how to fix iBM Cloud Terraform provider v2.5.0: ibm_iam_user_invite fails with "already ACTIVE" for existing members. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

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.

Steps

  1. 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.

  1. 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

When to use

You are seeing this: Previously the invite was a no-op. Use this skill when you run into "IBM Cloud Terraform provider v2.5.0: ibmiamuser_invite fails with "already ACTIVE" for existing members".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: v2.5.0, v2.6.0. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • 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 2 · 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>

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