disc / terraform-provider-pritunl

Pritunl Terraform provider
https://pritunl.com
Mozilla Public License 2.0
47 stars 20 forks source link

UI takes precedence over terraform users #71

Open ajinkya6 opened 1 week ago

ajinkya6 commented 1 week ago

When an SSO user login to pritunl org his user profile appears under that org. After this if I try and create the exact same user using terraform, a duplicate user is created, Expected behavior is terraform should recognize that there already exists such a user and not recreate the same user.

disc commented 5 days ago

Hello @ajinkya6. The provider has a state and knows nothing about users before you import it. The Pritunl API allows you to create users with the same username, but it has a different user ID under the hood.

image

I think you need to provision users first and link them with SSO before logging into Pritunl.