---
title: "Update organization IdP Sync settings"
method: PATCH
path: "/api/v2/settings/idpsync/organization"
tags: ["Enterprise"]
---

# Update organization IdP Sync settings

`PATCH /api/v2/settings/idpsync/organization`

## Request body

- CodersdkOrganizationSyncSettings
  - `field` string — Field selects the claim field to be used as the created user's organizations. If the field is the empty string, then no organization updates will ever come from the OIDC provider.
  - `mapping` object — Mapping maps from an OIDC claim --> Coder organization uuid
  - `organization_assign_default` boolean — AssignDefault will ensure the default org is always included for every user, regardless of their claims. This preserves legacy behavior.

## Response `200`

OK

- CodersdkOrganizationSyncSettings
  - `field` string — Field selects the claim field to be used as the created user's organizations. If the field is the empty string, then no organization updates will ever come from the OIDC provider.
  - `mapping` object — Mapping maps from an OIDC claim --> Coder organization uuid
  - `organization_assign_default` boolean — AssignDefault will ensure the default org is always included for every user, regardless of their claims. This preserves legacy behavior.

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
