Refresh organization SSO connection
Refresh organization SSO connection: refreshOrganizationSsoConnection in the TypeScript, Python, Rust and Go clients.
POST /v1/auth/organizations/{orgId}/sso/refresh
Refreshes the selected organization’s SSO connection and returns its current connection state, configuration version and policy synchronization status. This operation takes no request body.
photon.auth.refreshOrganizationSsoConnection(input: RefreshOrganizationSsoConnectionInput, options?: RequestOptions): Promise<RefreshOrganizationSsoConnectionOutput>photon.auth.refresh_organization_sso_connection(input: RefreshOrganizationSsoConnectionInput, *, options: RequestOptions | None = None) -> models.OrganizationSsoConfigurationclient.refresh_organization_sso_connection(org_id: String).await -> Result<ResponseValue<types::OrganizationSsoConfiguration>, Error<RefreshOrganizationSsoConnectionError>>client.Auth.RefreshOrganizationSsoConnection(ctx context.Context, params *RefreshOrganizationSsoConnectionParams, 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.refreshOrganizationSsoConnection({
path: {
orgId: "orgId",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import RefreshOrganizationSsoConnectionInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.auth.refresh_organization_sso_connection(
RefreshOrganizationSsoConnectionInput.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
.refresh_organization_sso_connection("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.RefreshOrganizationSsoConnection(ctx, &photonapi.RefreshOrganizationSsoConnectionParams{
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.