Skip to content

Commit 35530d5

Browse files
committed
wip
1 parent e123f70 commit 35530d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/resources/user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ resource "coderd_user" "admin" {
5656
- `login_type` (String) Type of login for the user. Valid types are `none`, `password`, `github`, and `oidc`.
5757
- `name` (String) Display name of the user. Defaults to username.
5858
- `password` (String, Sensitive) Password for the user. Required when `login_type` is `password`. Passwords are saved into the state as plain text and should only be used for testing purposes.
59-
- `roles` (Set of String) Roles assigned to the user. Valid roles are `owner`, `template-admin`, `user-admin`, and `auditor`.
59+
- `roles` (Set of String) Roles assigned to the user. Valid roles are `owner`, `template-admin`, `user-admin`, and `auditor`. If `null`, roles will not be managed by Terraform. This attribute must be null if the user is an OIDC user and role sync is configured
6060
- `suspended` (Boolean) Whether the user is suspended.
6161

6262
### Read-Only

internal/provider/user_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (r *UserResource) Schema(ctx context.Context, req resource.SchemaRequest, r
8787
Required: true,
8888
},
8989
"roles": schema.SetAttribute{
90-
MarkdownDescription: "Roles assigned to the user. Valid roles are `owner`, `template-admin`, `user-admin`, and `auditor`. If `null`, roles will not be managed by Terraform. This attribute must be null if the user was created via OIDC and uses role sync.",
90+
MarkdownDescription: "Roles assigned to the user. Valid roles are `owner`, `template-admin`, `user-admin`, and `auditor`. If `null`, roles will not be managed by Terraform. This attribute must be null if the user is an OIDC user and role sync is configured",
9191
Computed: true,
9292
Optional: true,
9393
ElementType: types.StringType,

0 commit comments

Comments
 (0)