diff --git a/integration/user-test/main.tf b/integration/user-test/main.tf index b0cb017..46cb6f6 100644 --- a/integration/user-test/main.tf +++ b/integration/user-test/main.tf @@ -20,3 +20,12 @@ resource "coderd_user" "dean" { data "coderd_user" "ethan" { username = "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" + roles = data.coderd_user.ethan.roles + suspended = data.coderd_user.ethan.suspended +} + diff --git a/internal/provider/user_data_source.go b/internal/provider/user_data_source.go index 0fdf762..8254fe1 100644 --- a/internal/provider/user_data_source.go +++ b/internal/provider/user_data_source.go @@ -63,7 +63,7 @@ func (d *UserDataSource) Schema(ctx context.Context, req datasource.SchemaReques Optional: true, }, "name": schema.StringAttribute{ - MarkdownDescription: "Display name of the user. Defaults to username.", + MarkdownDescription: "Display name of the user.", Computed: true, }, "email": schema.StringAttribute{