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

UI takes precedence over terraform users #71

Open
ajinkya6 opened this issue Nov 20, 2024 · 1 comment
Open

UI takes precedence over terraform users #71

ajinkya6 opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
invalid This doesn't seem right question Further information is requested

Comments

@ajinkya6
Copy link

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 disc self-assigned this Nov 26, 2024
@disc disc added bug Something isn't working invalid This doesn't seem right question Further information is requested and removed bug Something isn't working labels Nov 26, 2024
@disc
Copy link
Owner

disc commented Nov 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants