Get organization SSO configuration
Get organization SSO configuration: getOrganizationSsoConfiguration in the TypeScript, Python, Rust and Go clients.
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>photon.auth.get_organization_sso_configuration(input: GetOrganizationSsoConfigurationInput, *, options: RequestOptions | None = None) -> models.OrganizationSsoConfigurationclient.get_organization_sso_configuration(org_id: String).await -> Result<ResponseValue<types::OrganizationSsoConfiguration>, Error<GetOrganizationSsoConfigurationError>>client.Auth.GetOrganizationSsoConfiguration(ctx context.Context, params *GetOrganizationSsoConfigurationParams, opts ...RequestOption) (*OrganizationSsoConfiguration, error)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",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import GetOrganizationSsoConfigurationInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.auth.get_organization_sso_configuration(
GetOrganizationSsoConfigurationInput.model_validate({
"path": {
"orgId": "orgId",
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
let result = client
.get_organization_sso_configuration("orgId".to_owned())
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
result, err := client.Auth.GetOrganizationSsoConfiguration(ctx, &photonapi.GetOrganizationSsoConfigurationParams{
OrgID: "orgId",
})
if err != nil {
return err
}
_ = result{
"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
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 Current connection and independent local policy state. OrganizationSsoConfiguration
Headers: Photon-Version. The raw response carries these headers; see Raw responses.