---
title: "Enforce SSO"
method: POST
path: "/sso/enforce"
tags: ["SSO"]
---

# Enforce SSO

`POST /sso/enforce`

## Request

- Base URL: `https://gateway.pmnts.io/v2/partners`
- URL: `https://gateway.pmnts.io/v2/partners/sso/enforce`
- Auth: HTTP basic

Turns on SSO enforcement for the partner. No body is expected. Returns
`409 conflict` when active users aren't yet linked to the IdP — they'd
be locked out, so link them first.

## Response `200`

The SSO enforcement state.

- SsoState: The partner's SSO enforcement state and IdP-link counts.
  - `enforced` boolean, required: Whether SSO is enforced for the partner.
  - `users_total` integer, required: Total active users.
  - `users_linked` integer, required: Active users linked to the IdP.
  - `users_unlinked` integer, required: Active users not yet linked to the IdP.

## Other responses

- `401`: Missing or invalid HTTP Basic credentials.
- `409`: The request conflicts with the resource's current state.

---

[API](https://skmtc.dev/fatzebra/apis/fat-zebra-partner-api.md) - [All operations](https://skmtc.dev/fatzebra/apis/fat-zebra-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fatzebra/apis/fat-zebra-partner-api/revisions/10f1181ea916?raw)
