Set Security Settings
PUThttps://$CUSTOM-DOMAIN/v2/policies/security
Set the security settings of the ZITADEL instance.
Request​
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
embeddedIframe
object
allows users to impersonate other users. The impersonator needs the appropriate *_IMPERSONATOR
roles assigned as well
Body
required
embeddedIframe
object
allows users to impersonate other users. The impersonator needs the appropriate *_IMPERSONATOR
roles assigned as well
Body
required
embeddedIframe
object
allows users to impersonate other users. The impersonator needs the appropriate *_IMPERSONATOR
roles assigned as well
Responses​
- 200
- 403
- 404
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-25T10:28:46.177Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-25T10:28:46.178Z"
}
}
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-25T10:28:46.178Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-25T10:28:46.178Z"
}
}
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-25T10:28:46.178Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-25T10:28:46.178Z"
}
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v2/policies/security' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"embeddedIframe": {
"enabled": true,
"allowedOrigins": [
"foo.bar.com",
"localhost:8080"
]
},
"enableImpersonation": true
}'