ZITADEL Docs
APIsCore ResourcesV1Instance Objects

SetSecurityPolicy

PUT
/policies/security

Request Body

application/json

enableIframeEmbedding?boolean

states if iframe embedding is enabled or disabled

allowedOrigins?array<>

origins allowed loading Zitadel in an iframe if enable_iframe_embedding is true

enableImpersonation?boolean

allows users to impersonate other users. The impersonator needs the appropriate *_IMPERSONATOR roles assigned as well"

[key: string]?never

Response Body

application/json

curl -X PUT "https://loading/policies/security" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "sequence": 0,
    "creationDate": "2023-01-15T01:30:15.01Z",
    "changeDate": "2023-01-15T01:30:15.01Z",
    "resourceOwner": "string"
  }
}

Was this page helpful?