Skip to content

Commit eece858

Browse files
committed
gen + fmt
1 parent 0f716ed commit eece858

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

docs/data-sources/user.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ An existing user on the coder deployment
2222

2323
### Read-Only
2424

25+
- `avatar_url` (String) URL of the user's avatar.
2526
- `created_at` (Number) Unix timestamp of when the user was created.
2627
- `email` (String) Email of the user.
2728
- `last_seen_at` (Number) Unix timestamp of when the user was last seen.
2829
- `login_type` (String) Type of login for the user. Valid types are 'none', 'password', 'github', and 'oidc'.
29-
- `name` (String) Display name of the user. Defaults to username.
30+
- `name` (String) Display name of the user.
3031
- `organization_ids` (Set of String) IDs of organizations the user is associated with.
3132
- `roles` (Set of String) Roles assigned to the user. Valid roles are 'owner', 'template-admin', 'user-admin', and 'auditor'.
3233
- `suspended` (Boolean) Whether the user is suspended.

integration/user-test/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ data "coderd_user" "ethan" {
2222
}
2323

2424
resource "coderd_user" "ethan2" {
25-
username = "${data.coderd_user.ethan.username}2"
26-
name = "${data.coderd_user.ethan.name}2"
27-
email = "${data.coderd_user.ethan.email}.au"
28-
login_type = "${data.coderd_user.ethan.login_type}"
29-
roles = data.coderd_user.ethan.roles
30-
suspended = data.coderd_user.ethan.suspended
25+
username = "${data.coderd_user.ethan.username}2"
26+
name = "${data.coderd_user.ethan.name}2"
27+
email = "${data.coderd_user.ethan.email}.au"
28+
login_type = data.coderd_user.ethan.login_type
29+
roles = data.coderd_user.ethan.roles
30+
suspended = data.coderd_user.ethan.suspended
3131
}
3232

0 commit comments

Comments
 (0)