- Notifications
You must be signed in to change notification settings - Fork4
feat: add coderd_user data source#19
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
dc475b4
70fcc08
93f239c
0edeff0
cc62729
8e8e8c4
c2c2e07
c31e0d0
162a744
6155b85
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "coderd_user Data Source - coderd" | ||
subcategory: "" | ||
description: |- | ||
An existing user on the coder deployment | ||
--- | ||
# coderd_user (Data Source) | ||
An existing user on the coder deployment | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
### Optional | ||
- `id` (String) The ID of the user to retrieve. This field will be populated if a username is supplied. | ||
- `username` (String) The username of the user to retrieve. This field will be populated if an ID is supplied. | ||
### Read-Only | ||
- `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. | ||
- `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. | ||
- `theme_preference` (String) The user's preferred theme. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -16,3 +16,17 @@ resource "coderd_user" "dean" { | ||
password = "SomeSecurePassword!" | ||
suspended = false | ||
} | ||
data "coderd_user" "ethan" { | ||
username = "ethan" | ||
} | ||
ethanndickson marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
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 | ||
} | ||
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.