---
title: "Create Sso Settings"
method: POST
path: "/api/v1/orgs/current/sso-settings"
tags: ["orgs"]
---

# Create Sso Settings

`POST /api/v1/orgs/current/sso-settings`

Create SSO provider settings for the current organization.

## Request body

- SSOSettingsCreate
  - `default_workspace_role_id` string, uuid, required
  - `default_workspace_ids` string[], required
  - `metadata_xml` string, nullable
  - `metadata_url` string, nullable
  - `attribute_mapping` SupabaseAttributeMapping — Supabase SAML provider attribute_mapping. Empty keys is a valid value (clears the mapping). Map key is the claim key written into identity_data; value points at the SAML assertion attribute name.
    - `keys` object
  - `sso_groups_enabled` boolean
  - `sso_groups_claim_field` string
  - `sso_groups_required` boolean
  - `sso_groups_role_sync_enabled` boolean

## Response `201`

Successful Response

- SSOProvider
  - `id` string, uuid, required
  - `organization_id` string, uuid, required
  - `provider_id` string, uuid, required
  - `default_workspace_role_id` string, uuid, required
  - `default_workspace_ids` string[], required
  - `metadata_url` string, nullable
  - `metadata_xml` string, nullable
  - `sso_groups_enabled` boolean
  - `sso_groups_claim_field` string
  - `sso_groups_required` boolean
  - `sso_groups_role_sync_enabled` boolean
  - `attribute_mapping` SupabaseAttributeMapping — Supabase SAML provider attribute_mapping. Empty keys is a valid value (clears the mapping). Map key is the claim key written into identity_data; value points at the SAML assertion attribute name.
    - `keys` object
  - `attribute_mapping_load_error` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
