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(iam): add send_welcome_email in CreateUser #4270

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARGS:
[tags.{index}] Tags associated with the user
[member.email] Email of the user to create
[member.send-password-email] Whether or not to send an email containing the member's password.
[member.send-welcome-email] Whether or not to send a welcome email that includes onboarding information.
[member.username] The member's username
[member.password] The member's password
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
Expand Down
1 change: 1 addition & 0 deletions docs/commands/iam.md
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ scw iam user create [arg=value ...]
| tags.{index} | | Tags associated with the user |
| member.email | | Email of the user to create |
| member.send-password-email | | Whether or not to send an email containing the member's password. |
| member.send-welcome-email | | Whether or not to send a welcome email that includes onboarding information. |
| member.username | | The member's username |
| member.password | | The member's password |
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ require (
github.com/mattn/go-isatty v0.0.20
github.com/moby/buildkit v0.13.2
github.com/opencontainers/go-digest v1.0.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241108081805-731b10b69dcb
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25 h1:0z9rTKVzJRDBWp/d/ZABKXNhytQZyznH4EXo+evEgMY=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25/go.mod h1:3jrRJM7638J+P33hKy9MBvfOBxNo8pEGNQQoIv65Ihg=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241108081805-731b10b69dcb h1:uHJzyIKgWLhvcsxaB0y8eHRMk+A7diA8KGEFhRvV1MI=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241108081805-731b10b69dcb/go.mod h1:kAoejOVBg1E/aVAR6IwKWEmbLCEg2IXklzPAkxzAaXA=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=
Expand Down
7 changes: 7 additions & 0 deletions internal/namespaces/iam/v1alpha1/iam_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,13 @@ func iamUserCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "member.send-welcome-email",
Short: `Whether or not to send a welcome email that includes onboarding information.`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "member.username",
Short: `The member's username`,
Expand Down
Loading