Enterprise

Update organization IdP Sync mapping

Changed on
patch/api/v2/settings/idpsync/organization/mapping

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/settings/idpsync/organization/mapping
  • Auth
    API key in header Coder-Session-Token

Request body

Response

OK

fieldstring

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.

mappingobject

Mapping maps from an OIDC claim --> Coder organization uuid

organization_assign_defaultboolean

AssignDefault will ensure the default org is always included for every user, regardless of their claims. This preserves legacy behavior.

Changes