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

Commit960d399

Browse files
EdwardAngertEdwardAngert
EdwardAngert
authored and
EdwardAngert
committed
add cli steps for org sync
1 parent45d9274 commit960d399

File tree

1 file changed

+59
-4
lines changed

1 file changed

+59
-4
lines changed

‎docs/admin/users/idp-sync.md

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,66 @@ Visit the Coder UI to confirm these changes:
304304

305305
## Organization Sync (Premium)
306306

307-
> Note: In a future Coder release, this can be managed via the Coder UI instead
308-
> of server flags.
309-
310307
If your OpenID Connect provider supports groups/role claims, you can configure
311308
Coder to synchronize claims in your auth provider to organizations within Coder.
312309

313-
First, confirm that your OIDC provider is sending clainms by logging in with
310+
Viewing and editing the organization settings requires deployment admin permissions (UserAdmin or Owner).
311+
312+
Organization sync works across all organizations. On user login, the sync will add and remove the user from organizations based on their IdP claims. After the sync, the user's state should match that of the IdP.
313+
314+
You can initiate an organization sync through the CLI or through the Coder dashboard:
315+
316+
<div class=”tabs”
317+
318+
## CLI
319+
320+
Use the Coder CLI to show and adjust the settings.
321+
322+
These deployment-wide settings are stored in the database. After you change the settings, a user's memberships will update when they log out and log back in.
323+
324+
1. Show the current settings:
325+
326+
```console
327+
coder organization settings show org-sync
328+
{
329+
"field": "organizations",
330+
"mapping": {
331+
"product": ["868e9b76-dc6e-46ab-be74-a891e9bd784b", "cbdcf774-9412-4118-8cd9-b3f502c84dfb"]
332+
},
333+
"organization_assign_default": true
334+
}
335+
```
336+
337+
1. Update with the JSON payload. In this example, `settings.json` contains the payload:
338+
339+
```console
340+
coder organization settings set org-sync < settings.json
341+
{
342+
"field": "organizations",
343+
"mapping": {
344+
"product": [
345+
"868e5b23-dc6e-46ab-be74-a891e9bd784b",
346+
"cbdcf774-4123-4118-8cd9-b3f502c84dfb"
347+
],
348+
"sales": [
349+
"d79144d9-b30a-555a-9af8-7dac83b2q4ec",
350+
]
351+
},
352+
"organization_assign_default": true
353+
}
354+
```
355+
356+
Analyzing the JSON payload:
357+
358+
| Field | Explanation |
359+
|:--|:--|
360+
| field | If this field is the empty string `""`, then org-sync is disabled. </br> Org memberships must be manually configured through the UI or API.|
361+
| mapping | Mapping takes a claim from the IdP, and associates it with 1 or more organizations by UUID. </br> No validation is done, so you can put UUID's of orgs that do not exist (a noop). The UI picker will allow selecting orgs from a drop down, and convert it to a UUID for you. |
362+
| organization_assign_default | This setting exists for maintaining backwards compatibility with single org deployments, either through their upgrade, or in perpetuity. </br> If this is set to 'true', all users will always be assigned to the default organization regardless of the mappings and their IdP claims. |
363+
364+
## Dashboard
365+
366+
First, confirm that your OIDC provider is sending claims by logging in with
314367
OIDC and visiting the following URL with an `Owner` account:
315368

316369
```text
@@ -357,6 +410,8 @@ disable that with:
357410
CODER_OIDC_ORGANIZATION_ASSIGN_DEFAULT=false
358411
```
359412

413+
</div>
414+
360415
## Troubleshooting group/role/organization sync
361416

362417
Some common issues when enabling group/role sync.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp