---
title: "CreateSSOConfiguration"
method: POST
path: "/gitpod.v1.OrganizationService/CreateSSOConfiguration"
tags: ["gitpod.v1.OrganizationService"]
---

# CreateSSOConfiguration

`POST /gitpod.v1.OrganizationService/CreateSSOConfiguration`

CreateSSOConfiguration creates a new SSO configuration for the organization.

## Request body

- GitpodV1CreateSSOConfigurationRequest
  - `clientId` string, required — client_id is the client ID of the OIDC application set on the IdP
  - `clientSecret` string, required — client_secret is the client secret of the OIDC application set on the IdP
  - `emailDomain` string, required — email_domain is the domain that is allowed to sign in to the organization
  - `issuerUrl` string, uri, required — issuer_url is the URL of the IdP issuer
  - `organizationId` string, uuid, required

## Response `200`

Success

- GitpodV1CreateSSOConfigurationResponse
  - `ssoConfiguration` GitpodV1SSOConfiguration, required
    - `claims` object — claims are key/value pairs that defines a mapping of claims issued by the IdP.
    - `clientId` string — client_id is the client ID of the OIDC application set on the IdP
    - `emailDomain` string
    - `id` string, uuid, required — id is the unique identifier of the SSO configuration
    - `issuerUrl` string, required — issuer_url is the URL of the IdP issuer
    - `organizationId` string, uuid, required
    - `providerType` 'PROVIDER_TYPE_UNSPECIFIED' | 'PROVIDER_TYPE_BUILTIN' | 'PROVIDER_TYPE_CUSTOM', required
    - `state` 'SSO_CONFIGURATION_STATE_UNSPECIFIED' | 'SSO_CONFIGURATION_STATE_INACTIVE' | 'SSO_CONFIGURATION_STATE_ACTIVE', required

## Other responses

- `default` — Error

## Changes

- **2025-02-14** `27f7bd641de1` — 2 breaking
  - the response property `ssoConfiguration/allOf[subschema #1: SSOConfiguration]/clientId` became optional for the status `200`
  - the response property `ssoConfiguration/allOf[subschema #1: SSOConfiguration]/emailDomain` became optional for the status `200`
- **2025-02-14** `988164042da1` — 5 breaking, 8 info
  - the request property `clientId` became required
  - the request property `clientSecret` became required
  - the request property `emailDomain` became required
  - the request property `issuerUrl` became required
  - …9 more

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.OrganizationService/CreateSSOConfiguration/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/27f7bd641de1/schema)
