# /organizations/{organizationId}/subaccounts/{subaccountId}/sso/config

Returns current Organization's SSO config

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Partner API",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://admin.formstack.com/api/v1",
      "description": "Partner API"
    }
  ],
  "paths": {
    "/organizations/{organizationId}/subaccounts/{subaccountId}/sso/config": {
      "get": {
        "tags": [
          "PartnerApi"
        ],
        "description": "Returns current Organization's SSO config",
        "operationId": "showSsoConfig",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "ID of the organization",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "b443d63c-3e37-11f1-8898-0242ac000003"
            }
          },
          {
            "name": "subaccountId",
            "in": "path",
            "description": "ID of the subaccount",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "8ecb0a3c-3e38-11f1-96c0-0242ac000003"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "apps api keys",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfig"
                }
              }
            }
          },
          "404": {
            "description": "Organization could not be found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Idp": {
        "properties": {
          "name": {
            "type": "string",
            "example": "Okta / Acme"
          },
          "updatedBy": {
            "type": "string",
            "example": "jane@acme.com"
          },
          "updatedAt": {
            "type": [
              "integer",
              "null"
            ],
            "example": 1713888000
          },
          "isEnabled": {
            "type": "boolean",
            "example": true
          },
          "type": {
            "type": "string",
            "example": "saml",
            "enum": [
              "saml",
              "oidc"
            ]
          },
          "idpMetadata": {
            "description": "Identity Provider metadata",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SamlIdpMetadata"
              },
              {
                "$ref": "#/components/schemas/OidcIdpMetadata"
              }
            ]
          },
          "spMetadata": {
            "description": "Service Provider metadata",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SamlSpMetadata"
              },
              {
                "$ref": "#/components/schemas/OidcSpMetadata"
              }
            ]
          }
        },
        "type": "object"
      },
      "SamlIdpMetadata": {
        "properties": {
          "metadataUrl": {
            "type": [
              "string",
              "null"
            ],
            "example": "https://idp.example.com/metadata"
          },
          "entityId": {
            "type": [
              "string",
              "null"
            ],
            "example": "urn:example:acme:idp"
          },
          "ssoUrl": {
            "type": [
              "string",
              "null"
            ],
            "example": "https://idp.example.com/sso/saml2"
          }
        },
        "type": "object"
      },
      "OidcIdpMetadata": {
        "properties": {
          "providerUrl": {
            "type": [
              "string",
              "null"
            ],
            "example": "https://idp.example.com/oidc"
          },
          "clientId": {
            "type": [
              "string",
              "null"
            ],
            "example": "oidc_client_123"
          },
          "customScopes": {
            "type": [
              "string",
              "null"
            ],
            "example": "openid profile email"
          }
        },
        "type": "object"
      },
      "SamlSpMetadata": {
        "properties": {
          "entityId": {
            "type": [
              "string",
              "null"
            ],
            "example": "urn:formstack:acme:sp"
          },
          "acsUrl": {
            "type": [
              "string",
              "null"
            ],
            "example": "https://admin.formstack.com/acs/8ecb0a3c-3e38-11f1-96c0-0242ac000003"
          }
        },
        "type": "object"
      },
      "OidcSpMetadata": {
        "properties": {
          "redirectUri": {
            "type": [
              "string",
              "null"
            ],
            "example": "https://admin.formstack.com/oidc/callback"
          }
        },
        "type": "object"
      },
      "SsoConfig": {
        "properties": {
          "verifiedSsoDomains": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "login.acme.com"
            },
            "example": [
              "login.acme.com",
              "sso.example.org"
            ]
          },
          "idps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Idp"
            }
          },
          "allowsGoogleAuth": {
            "type": "boolean",
            "example": true
          },
          "allowsAppleAuth": {
            "type": "boolean",
            "example": false
          },
          "requireLoginViaSso": {
            "type": "boolean",
            "example": false
          },
          "enableQuietUserCreation": {
            "type": "boolean",
            "example": false
          },
          "autoRedirectToIdentityProvider": {
            "type": "boolean",
            "example": true
          },
          "allowUserCreation": {
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Bearer authentication"
      }
    }
  },
  "tags": [
    {
      "name": "PartnerApi",
      "description": "PartnerApi"
    }
  ]
}
```