Reference / Dashboard

create/update the account's OIDC connection + group→role map.

PUT /v1/dashboard/sso/connection
End-user session operationId: put_connection

Authorization

Called from the browser with the publishable application id (x-application-id); the access token lives in memory.

Request body · required

  • allow_jit boolean
  • client_id string required
  • client_secret string

    Plaintext client secret; stored encrypted. Omit to keep the existing secret.

  • default_role string
  • email_claim string
  • enabled boolean
  • group_mappings SsoGroupMappingBody[]
  • groups_claim string
  • issuer string required
  • name_claim string
  • scopes string[]

Responses

200 Connection saved
{
  "data": {},
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
403 Insufficient role
422 Invalid input

Request

curl -X PUT "https://api.identrahq.com/v1/dashboard/sso/connection" \
  -H "Content-Type: application/json" \
  -d '{
  "allow_jit": false,
  "client_id": "string",
  "client_secret": "string",
  "default_role": "string",
  "email_claim": "string",
  "enabled": false,
  "group_mappings": [
    {
      "idp_group": "string",
      "role": "string"
    }
  ],
  "groups_claim": "string",
  "issuer": "https://login.microsoftonline.com/<tenant>/v2.0",
  "name_claim": "string",
  "scopes": [
    "string"
  ]
}'

Try it

live request
PUT https://api.identrahq.com/v1/dashboard/sso/connection

Request body

application/json