Skip to content

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

Returns the selected organization’s SSO connection state, configuration version, and desired and effective policy settings. Read policySyncStatus alongside the enforcement fields to distinguish requested settings from synchronized settings.

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

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

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