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

docs: add new steps for org sync through ui#15768

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

Merged
EdwardAngert merged 6 commits into15431-docs-org-syncfrom15503-ui-org-sync
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
new steps for org sync through ui
  • Loading branch information
EdwardAngert authored andEdwardAngert committedDec 5, 2024
commit86ee782e7d3b18729a1428e3f616763db1f0a5aa
5 changes: 5 additions & 0 deletions.github/workflows/ci.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -221,6 +221,11 @@ jobs:
./scripts/check_unstaged.sh
shell: bash

- name: markdownlint-cli2-action
uses: DavidAnson/markdownlint-cli2-action@v18.0.0
with:
globs: "docs/**/*.md"

gen:
timeout-minutes: 8
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
Expand Down
29 changes: 9 additions & 20 deletionsdocs/admin/users/idp-sync.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -420,36 +420,25 @@ settings, a user's memberships will update when they log out and log back in.
Depending on the OIDC provider, this claim may be called something else.
Common names include `groups`, `memberOf`, and `roles`.

1. Configure the Coder server to read groups from the claim name with the OIDC
organization field server flag:

```sh
# as an environment variable
CODER_OIDC_ORGANIZATION_FIELD=groups
```

1. Fetch the corresponding organization IDs using the following endpoint:

```text
https://[coder.example.com]/api/v2/organizations
```

1.Set the following in your Coder server [configuration](../setup/index.md).
1.As a Coder admin, go to **Settings** > **IdP organization sync**.
Copy link
Member

@johnstcnjohnstcnDec 10, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Note: we should probably clarify that the user must be an Organization Admin or a site-wide User Admin.

ref:https://github.com/coder/coder/blob/main/coderd/rbac/roles.go (search forResourceIdpsyncSettings)

EdwardAngert reacted with thumbs up emoji

```env
CODER_OIDC_ORGANIZATION_MAPPING='{"data-scientists":["d8d9daef-e273-49ff-a832-11fe2b2d4ab1", "70be0908-61b5-4fb5-aba4-4dfb3a6c5787"]}'
```
1. In the **Organization sync field** text box, enter the organization claim,
then select **Save**.

> One claim value from your identity provider can be mapped to many
> organizations in Coder. The example above maps to two organizations in
> Coder.
If there are already users in the default organization, leave **Assign
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

As I understand it, when Assign Default Organization is enabled, users will always be added to the default organization and when it is disabled users will always be removed from the default organization. I think it may be useful to let users know that this is always the case whether or not users are already in the default organization.

Default Organization** enabled. Disabling it might remove users from the
default organization.

1.By default, all users are assigned to the default (first) organization. You
can disable that with:
1.Enter an IdP organization name and Coder organization, then select **Add IdP
organization**:

```env
CODER_OIDC_ORGANIZATION_ASSIGN_DEFAULT=false
```
![IdP organization sync](../../images/admin/users/organizations/idp-org-sync.png)

</div>

Expand Down
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

[8]ページ先頭

©2009-2025 Movatter.jp