Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: support importing IDP based users #25

Closed
mefellows opened this issue Jun 8, 2022 · 0 comments
Closed

Feat: support importing IDP based users #25

mefellows opened this issue Jun 8, 2022 · 0 comments

Comments

@mefellows
Copy link
Contributor

From https://pact-foundation.slack.com/archives/C02NN7XSHDM/p1654665175466349?thread_ts=1654480938.633869&cid=C02NN7XSHDM

If you want to import a user with a different identity provider (e.g. SAML), you can't, because it always will try to create another user, and in this case it'll use Pactflow as identity provider by default.

For example, if you wanted to import as user as follows:terraform state rm pact_user.john_doe; terraform import pact_user.john_doe df33f287-4cd2-4469-943b-ccb0edc2f3bd, any future terraform plan (or apply) will attempt to re-create the user:

  # pact_user.john_doe must be replaced
-/+ resource "pact_user" "john_doe" {
      ~ active = false -> true
      ~ id     = "d97a9d4d-89cc-4337-8dcf-5517a34312e7" -> (known after apply)
        name   = "John Doe"
      + roles  = [
          + "d635f960-88f2-4f13-8043-4641a02dffa0"
        ]
      + type   = "user" # forces replacement
      ~ uuid   = "d97a9d4d-89cc-4337-8dcf-5517a34312e7" -> (known after apply)
        # (1 unchanged attribute hidden)
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant