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

[PROPOSAL] Add flag to allow merging SSO users #68

Open
strangeman opened this issue Oct 8, 2024 · 0 comments
Open

[PROPOSAL] Add flag to allow merging SSO users #68

strangeman opened this issue Oct 8, 2024 · 0 comments

Comments

@strangeman
Copy link

Problem

Pritunl doesn't allow disabling of auto-creation for the SSO users (e.g. Google SSO). In that case, there may be situations when the user account will be duplicated (one account will be created via Terraform and another one by first login via SSO).

Suggestion

Add a merge_existing boolean flag to the pritunl_user resource, which will check if a user with the same set of properties (name, organization, auth_type, email) already exists and add it to the TF state if that is true.

https://registry.terraform.io/providers/cloudflare/cloudflare/4.43.0/docs/resources/record#allow_overwrite has a similar approach (but it overrides the record instead, which will break existing user profile in or case)

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