Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit283e3cc

Browse files
authored
feat: addgroup_sync androle_sync forcoderd_organization_resource (#147)
1 parentdedb7d0 commit283e3cc

File tree

4 files changed

+377
-1
lines changed

4 files changed

+377
-1
lines changed

‎docs/resources/organization.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,33 @@ An organization on the Coder deployment
2323

2424
-`description` (String)
2525
-`display_name` (String) Display name of the organization. Defaults to name.
26+
-`group_sync` (Block, Optional) (see[below for nested schema](#nestedblock--group_sync))
2627
-`icon` (String)
28+
-`role_sync` (Block, Optional) (see[below for nested schema](#nestedblock--role_sync))
2729

2830
###Read-Only
2931

3032
-`id` (String) Organization ID
3133

34+
<aid="nestedblock--group_sync"></a>
35+
###Nested Schema for`group_sync`
36+
37+
Optional:
38+
39+
-`auto_create_missing` (Boolean) Controls whether groups will be created if they are missing.
40+
-`field` (String) The claim field that specifies what groups a user should be in.
41+
-`mapping` (Map of List of String) A map from OIDC group name to Coder group ID.
42+
-`regex_filter` (String) A regular expression that will be used to filter the groups returned by the OIDC provider. Any group not matched will be ignored.
43+
44+
45+
<aid="nestedblock--role_sync"></a>
46+
###Nested Schema for`role_sync`
47+
48+
Optional:
49+
50+
-`field` (String) The claim field that specifies what organization roles a user should be given.
51+
-`mapping` (Map of List of String) A map from OIDC group name to Coder organization role.
52+
3253
##Import
3354

3455
Import is supported using the following syntax:

‎internal/codersdkvalidator/regex.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package codersdkvalidator
2+
3+
import (
4+
"regexp"
5+
6+
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
7+
)
8+
9+
funccheckRegexp(itstring)error {
10+
_,err:=regexp.Compile("")
11+
returnerr
12+
}
13+
14+
funcRegexp() validator.String {
15+
returnvalidatorFromFunc(checkRegexp,"value must be a valid regexp")
16+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp