Skip to content

Commit

Permalink
gen + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanndickson committed Jul 15, 2024
1 parent 0f716ed commit eece858
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docs/data-sources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ An existing user on the coder deployment

### Read-Only

- `avatar_url` (String) URL of the user's avatar.
- `created_at` (Number) Unix timestamp of when the user was created.
- `email` (String) Email of the user.
- `last_seen_at` (Number) Unix timestamp of when the user was last seen.
- `login_type` (String) Type of login for the user. Valid types are 'none', 'password', 'github', and 'oidc'.
- `name` (String) Display name of the user. Defaults to username.
- `name` (String) Display name of the user.
- `organization_ids` (Set of String) IDs of organizations the user is associated with.
- `roles` (Set of String) Roles assigned to the user. Valid roles are 'owner', 'template-admin', 'user-admin', and 'auditor'.
- `suspended` (Boolean) Whether the user is suspended.
Expand Down
12 changes: 6 additions & 6 deletions integration/user-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ data "coderd_user" "ethan" {
}

resource "coderd_user" "ethan2" {
username = "${data.coderd_user.ethan.username}2"
name = "${data.coderd_user.ethan.name}2"
email = "${data.coderd_user.ethan.email}.au"
login_type = "${data.coderd_user.ethan.login_type}"
roles = data.coderd_user.ethan.roles
suspended = data.coderd_user.ethan.suspended
username = "${data.coderd_user.ethan.username}2"
name = "${data.coderd_user.ethan.name}2"
email = "${data.coderd_user.ethan.email}.au"
login_type = data.coderd_user.ethan.login_type
roles = data.coderd_user.ethan.roles
suspended = data.coderd_user.ethan.suspended
}

0 comments on commit eece858

Please sign in to comment.