ZITADEL Docs
APIsCore ResourcesV2Settings

SetSecuritySettings

Set Security Settings

Set the security settings of the instance.

Required permissions:

  • iam.policy.write
PUT
/v2/policies/security

Request Body

application/json

embeddedIframe?

EmbeddedIframeSettings defines if the login UI can be embedded in an iframe and which origins are allowed to do so.

enableImpersonation?boolean

If enabled, users are allowed to impersonate other users. The impersonator needs the appropriate *_IMPERSONATOR roles assigned as well".

[key: string]?never

Response Body

application/json

application/json

curl -X PUT "https://loading/v2/policies/security" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?