Skip to content
Skip to Content
Coder Docs

Get group IdP Sync settings by organization

GET
/api/v2/organizations/{organization}/settings/idpsync/groups

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

organization*string

Organization ID

Formatuuid

Response Body

OK

application/json
  1. response
auto_create_missing_groups?boolean

AutoCreateMissing controls whether groups returned by the OIDC provider are automatically created in Coder if they are missing.

field?string

Field is the name of the claim field that specifies what groups a user should be in. If empty, no groups will be synced.

legacy_group_name_mapping?

LegacyNameMapping is deprecated. It remaps an IDP group name to a Coder group name. Since configuration is now done at runtime, group IDs are used to account for group renames. For legacy configurations, this config option has to remain. Deprecated: Use Mapping instead.

mapping?

Mapping is a map from OIDC groups to Coder group IDs

regex_filter?

RegexFilter is a regular expression that filters the groups returned by the OIDC provider. Any group not matched by this regex will be ignored. If the group filter is nil, then no group filtering will occur.

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/organizations/{organization}/settings/idpsync/groups" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "auto_create_missing_groups": true,  "field": "string",  "legacy_group_name_mapping": {    "property1": "string",    "property2": "string"  },  "mapping": {    "property1": [      "string"    ],    "property2": [      "string"    ]  },  "regex_filter": null}