Skip to content

PATCH /v1/auth/organizations/{orgId}/sso

Updates whether SSO can admit new members automatically using ssoJitEnabled and the current expectedVersion. Returns the organization’s SSO configuration and policy synchronization status; a successful response does not mean every desired policy setting has finished synchronizing.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.auth.updateOrganizationSsoPolicy({
  path: {
    orgId: "orgId",
  },
  body: {
    expectedVersion: "expectedVersion",
    ssoJitEnabled: true,
  },
});
{
  "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.

orgIdstringrequired

Body

expectedVersionstringrequired
ssoJitEnabledbooleanrequired

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