Reference

Set SSO policy

Sets which email domains must sign in through single sign-on. Needs the admin token: the console checks each domain is verified first.

PUT
/orgs/{org}/sso

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

org*string

Request Body

application/json
  1. body
required_domains*array<>

People with an email at these domains must sign in through the organization's single sign-on. Console tokens of theirs that did not come from it are refused.

Itemsitems <= 100

Response Body

The new policy.

application/json
  1. response
required_domains*array<>

People with an email at these domains must sign in through the organization's single sign-on. Console tokens of theirs that did not come from it are refused.

Itemsitems <= 100
Example Request
curl -X PUT 'https://example.com/v1/orgs/string/sso' \  -H 'Content-Type: application/json' \  -d '{  "required_domains": [    "string"  ]}'
Example Response
{  "required_domains": [    "string"  ]}