Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Instance Objects

SetSecurityPolicy

PUT
/admin/v1/policies/security

Request Body

application/json
  1. body
enableIframeEmbedding?enable_iframe_embedding

states if iframe embedding is enabled or disabled

allowedOrigins?array<string>

origins allowed loading Zitadel in an iframe if enable_iframe_embedding is true

enableImpersonation?enable_impersonation

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

Response Body

Success

application/json
  1. response
details?
Example Request
curl -X PUT 'https://example.com/admin/v1/policies/security' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "sequence": 0,    "creationDate": "2023-01-15T01:30:15.01Z",    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string"  }}

Was this page helpful?