Skip to content

POST /v1/auth/organizations/{orgId}/sso/disable

Deletes the provider connection, releases the SSO requirement once the connection is gone, then unbinds the chosen domains. Retry with the same Idempotency-Key to resume or await the same run.

photon.auth.disableOrganizationSso(input: DisableOrganizationSsoInput, options?: RequestOptions): Promise<DisableOrganizationSsoOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.auth.disableOrganizationSso({
  path: {
    orgId: "orgId",
  },
  headers: {
    idempotencyKey: "idempotencyKey",
  },
  body: {
    expectedVersion: "expectedVersion",
  },
});
{
  "connectionChangedAt": null,
  "connectionGeneration": "string",
  "connectionState": "not_configured",
  "connectionType": "string",
  "desiredSsoEnforced": true,
  "domains": [
    {
      "domain": "string",
      "state": "verified"
    }
  ],
  "organizationId": "string",
  "policySyncStatus": "synced",
  "providerAvailable": true,
  "ssoEnforced": true,
  "ssoJitEnabled": true,
  "version": "string"
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

Idempotency-Keystringrequired

Identifies one logical mutation across retries.

orgIdstringrequired

Body

domainsarray of string
expectedVersionstringrequired

Returns

200 Current connection and independent local policy state. OrganizationSsoConfiguration

Headers: Photon-Version. The raw response carries these headers; see Raw responses.

connectionChangedAtstring (date-time) | nullrequired
connectionGenerationstringrequired
connectionStateOrganizationSsoConfigurationConnectionStaterequired
connectionTypestring
desiredSsoEnforcedbooleanrequired
domainsarray of OrganizationSsoDomain
organizationIdstringrequired
policySyncStatusOrganizationSsoConfigurationPolicySyncStatusrequired
providerAvailableboolean
ssoEnforcedbooleanrequired
ssoJitEnabledbooleanrequired
versionstringrequired