Skip to main content

Set Security Settings

PUT 

https://$CUSTOM-DOMAIN/admin/v1/policies/security

Set the security settings of the ZITADEL instance.

Request​

Body

required

    enableIframeEmbedding states if iframe embedding is enabled or disabled (boolean)
    allowedOrigins string[]
    enableImpersonation allows users to impersonate other users. The impersonator needs the appropriate `*_IMPERSONATOR` roles assigned as well" (boolean)

Responses​

A successful response.

Schema

    details

    object

    sequence uint64

    on read: the sequence of the last event reduced by the projection

    on manipulation: the timestamp of the event(s) added by the manipulation

    creationDate date-time

    on read: the timestamp of the first event of the object

    on create: the timestamp of the event(s) added by the manipulation

    changeDate date-time

    on read: the timestamp of the last event reduced by the projection

    on manipulation: the

    resourceOwner resource_owner is the organization an object belongs to (string)
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/policies/security' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"enableIframeEmbedding": true,
"allowedOrigins": [
"string"
],
"enableImpersonation": true
}'
Request Collapse all
Base URL
https://$CUSTOM-DOMAIN/admin/v1
Auth
Body required
{
  "enableIframeEmbedding": true,
  "allowedOrigins": [
    "string"
  ],
  "enableImpersonation": true
}
ResponseClear

Click the Send API Request button above and see the response here!