Skip to content

Commit 180a2ae

Browse files
authored
feat(iam): add send_welcome_email in CreateUser (#4270)
1 parent fc6cad9 commit 180a2ae

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

cmd/scw/testdata/test-all-usage-iam-user-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[tags.{index}] Tags associated with the user
1111
[member.email] Email of the user to create
1212
[member.send-password-email] Whether or not to send an email containing the member's password.
13+
[member.send-welcome-email] Whether or not to send a welcome email that includes onboarding information.
1314
[member.username] The member's username
1415
[member.password] The member's password
1516
[organization-id] Organization ID to use. If none is passed the default organization ID will be used

docs/commands/iam.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ scw iam user create [arg=value ...]
10611061
| tags.{index} | | Tags associated with the user |
10621062
| member.email | | Email of the user to create |
10631063
| member.send-password-email | | Whether or not to send an email containing the member's password. |
1064+
| member.send-welcome-email | | Whether or not to send a welcome email that includes onboarding information. |
10641065
| member.username | | The member's username |
10651066
| member.password | | The member's password |
10661067
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ require (
2626
github.com/mattn/go-isatty v0.0.20
2727
github.com/moby/buildkit v0.13.2
2828
github.com/opencontainers/go-digest v1.0.0
29-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25
29+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241108081805-731b10b69dcb
3030
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3131
github.com/spf13/cobra v1.8.1
3232
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
466466
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
468468
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25 h1:0z9rTKVzJRDBWp/d/ZABKXNhytQZyznH4EXo+evEgMY=
470-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25/go.mod h1:3jrRJM7638J+P33hKy9MBvfOBxNo8pEGNQQoIv65Ihg=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241108081805-731b10b69dcb h1:uHJzyIKgWLhvcsxaB0y8eHRMk+A7diA8KGEFhRvV1MI=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241108081805-731b10b69dcb/go.mod h1:kAoejOVBg1E/aVAR6IwKWEmbLCEg2IXklzPAkxzAaXA=
471471
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
472472
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
473473
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/iam/v1alpha1/iam_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,13 @@ func iamUserCreate() *core.Command {
635635
Deprecated: false,
636636
Positional: false,
637637
},
638+
{
639+
Name: "member.send-welcome-email",
640+
Short: `Whether or not to send a welcome email that includes onboarding information.`,
641+
Required: false,
642+
Deprecated: false,
643+
Positional: false,
644+
},
638645
{
639646
Name: "member.username",
640647
Short: `The member's username`,

0 commit comments

Comments
 (0)