Skip to content
Skip to Content
Coder Docs

Get role IdP Sync settings by organization

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

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

organization*string

Organization ID

Formatuuid

Response Body

OK

application/json
  1. response
field?string

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

mapping?

Mapping is a map from OIDC groups to Coder organization roles.

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

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