Security Policy
Operations about the instance security policy settings
Retrieve the instance security policy: personal-space publishing and sharing, the execution-data redaction enforcement floor, and the read-only usage counts shown in the UI. Requires the securitySettings:manage scope and the Personal Space Policy feature to be licensed.
Operation successful.
Whether members may publish workflows and agents from their personal space.
trueWhether members may share workflows and credentials from their personal space.
trueNumber of currently published personal workflows, shown for awareness before tightening the policy.
3Number of personal workflows currently shared with other users.
5Number of personal credentials currently shared with other users.
2Unauthorized
Forbidden
GET /api/v1/settings/security-policy HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"personalSpacePublishing": true,
"personalSpaceSharing": true,
"publishedPersonalWorkflowsCount": 3,
"sharedPersonalWorkflowsCount": 5,
"sharedPersonalCredentialsCount": 2,
"redactionEnforcement": {
"floor": "production"
}
}Replace the instance security policy with the provided full object. Every writable field must be sent. Read-only usage counts from GET are ignored if included, so a GET response can be sent back as a PUT body. The update takes effect exactly as it would from the UI, using the same validation. Requires the securitySettings:manage scope and the Personal Space Policy feature to be licensed. When the group is managed via environment variables, the write is rejected with 409 and no changes are made; a read still returns the current values.
Full security policy. All writable fields must be provided; partial updates are not supported.
Whether members may publish workflows and agents from their personal space.
falseWhether members may share workflows and credentials from their personal space.
falseRead-only usage count returned by GET. Ignored on write so a GET response can be sent back as a PUT body.
Read-only usage count returned by GET. Ignored on write so a GET response can be sent back as a PUT body.
Read-only usage count returned by GET. Ignored on write so a GET response can be sent back as a PUT body.
Operation successful.
Whether members may publish workflows and agents from their personal space.
trueWhether members may share workflows and credentials from their personal space.
trueNumber of currently published personal workflows, shown for awareness before tightening the policy.
3Number of personal workflows currently shared with other users.
5Number of personal credentials currently shared with other users.
2The request is invalid or provides malformed data.
Unauthorized
Forbidden
Conflict
Unsupported media type.
PUT /api/v1/settings/security-policy HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 212
{
"personalSpacePublishing": false,
"personalSpaceSharing": false,
"redactionEnforcement": {
"floor": "production"
},
"publishedPersonalWorkflowsCount": 1,
"sharedPersonalWorkflowsCount": 1,
"sharedPersonalCredentialsCount": 1
}{
"personalSpacePublishing": true,
"personalSpaceSharing": true,
"publishedPersonalWorkflowsCount": 3,
"sharedPersonalWorkflowsCount": 5,
"sharedPersonalCredentialsCount": 2,
"redactionEnforcement": {
"floor": "production"
}
}Last updated
Was this helpful?