Single sign-on

Update security policies

Changed on

Set the organization's security policies: whether members must have two-factor authentication or log in with its single sign-on (requireTwoFactor; members who don't get TWO_FACTOR_REQUIRED from the organization's endpoints until they do), and the email domains people must have to be invited or join (allowedEmailDomains, empty for any; current members stay). Requiring two-factor authentication needs the caller to meet it. Requires the sso: ["manage"] permission (owners)

put/api/v1/organizations/{organizationId}/security-policy

Request

  • Base URL
    https://app.easyscraper.com
  • URL
    https://app.easyscraper.com/api/v1/organizations/{organizationId}/security-policy
  • Auth
    API key in cookie better-auth.session_token

Path parameters

organizationIdstring uuid required

Request body

requireTwoFactorboolean required
allowedEmailDomainsstring[] required

Response

OK

requireTwoFactorboolean required
allowedEmailDomainsstring[] required

Changes