Get role IdP Sync settings by organization
GET
CoderSessionTokenheader
Coder-Session-Token<token>organization*stringOrganization ID
Format
uuidOK
application/json- response
field?stringField 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" ] }}