You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When username is set, the user is created as a [Member](https://www.scaleway.com/en/docs/iam/concepts/#member). Otherwise, it is created as a [Guest](https://www.scaleway.com/en/docs/iam/concepts/#guest).
33
+
21
34
### Multiple users
22
35
23
36
```terraform
@@ -28,7 +41,7 @@ locals {
28
41
])
29
42
}
30
43
31
-
resource scaleway_iam_useruser {
44
+
resource "scaleway_iam_user" "user" {
32
45
for_each = local.users
33
46
email = each.key
34
47
}
@@ -42,21 +55,36 @@ resource scaleway_iam_user user {
42
55
43
56
-`organization_id` - (Defaults to [provider](../index.md#organization_d)`organization_id`) The ID of the organization the user is associated with.
44
57
58
+
-`username` - (Optional) The username of the IAM user. When it is set, the user is created as a Member. When it is not set, the user is created as a Guest and the username is set as equal to the email.
59
+
60
+
-`password` - The password for first access. It gets ignored if the user is a Guest.
61
+
62
+
-`send_password_email` - Whether or not to send an email containing the member's password.
63
+
64
+
-`send_welcome_email` - Whether or not to send a welcome email that includes onboarding information.
65
+
66
+
-`first_name` - The user's first name.
67
+
68
+
-`first_name` - The user's last name.
69
+
70
+
-`phone_number` - The user's phone number.
71
+
72
+
-`locale` - The user's locale (e.g. en_US).
73
+
45
74
## Attributes Reference
46
75
47
76
In addition to all arguments above, the following attributes are exported:
48
77
49
78
-`id` - The ID of the user (UUID format).
50
-
-`email` - The email of the user
51
79
-`created_at` - The date and time of the creation of the IAM user.
52
80
-`updated_at` - The date and time of the last update of the IAM user.
53
81
-`deletable` - Whether the IAM user is deletable.
54
-
-`organization_id` - The ID of the organization the user.
55
82
-`last_login_at` - The date of the last login.
56
83
-`type` - The type of user. Check the possible values in the [API doc](https://www.scaleway.com/en/developers/api/iam/#path-users-get-a-given-user).
57
84
-`status` - The status of user invitation. Check the possible values in the [API doc](https://www.scaleway.com/en/developers/api/iam/#path-users-get-a-given-user).
58
85
-`mfa` - Whether the MFA is enabled.
59
86
-`account_root_user_id` - The ID of the account root user associated with the user.
0 commit comments