Settings Sso Saml
Operation successful.
Service provider entity ID (metadata URL).
https://n8n.example.com/rest/sso/saml/metadataAssertion Consumer Service (ACS) return URL.
https://n8n.example.com/rest/sso/saml/acsIdentity provider metadata in XML format. Redacted on read when set because it contains IdP certificates; never echoed back in plaintext. Use an empty string when unset.
**hidden**URL to fetch identity provider metadata from. Use an empty string when unset.
Whether to ignore SSL certificate errors when fetching metadata from a URL.
falseSAML login request binding.
redirectPossible values: Whether SAML login is enabled.
falseLabel shown on the SAML login button.
SAMLWhether authentication requests are signed.
falseWhether signed assertions are required.
trueWhether signed SAML messages are required.
truePEM-encoded private key for signing SAML AuthnRequests. Redacted on read when set; never echoed back in plaintext. Use an empty string when unset.
**hidden**PEM-encoded certificate containing the public key matching the signing private key. Redacted on read when set; never echoed back in plaintext. Use an empty string when unset.
**hidden**Assertion Consumer Service binding.
postPossible values: Default relay state value for SAML requests. Use an empty string when unset.
https://n8n.example.comUnauthorized
Forbidden
GET /api/v1/settings/sso/saml HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"entityID": "https://n8n.example.com/rest/sso/saml/metadata",
"returnUrl": "https://n8n.example.com/rest/sso/saml/acs",
"mapping": {
"email": "text",
"firstName": "text",
"lastName": "text",
"userPrincipalName": "text",
"n8nInstanceRole": "text",
"n8nProjectRoles": [
"text"
]
},
"metadata": "**hidden**",
"metadataUrl": "text",
"ignoreSSL": false,
"loginBinding": "redirect",
"loginEnabled": false,
"loginLabel": "SAML",
"authnRequestsSigned": false,
"wantAssertionsSigned": true,
"wantMessageSigned": true,
"signingPrivateKey": "**hidden**",
"signingCertificate": "**hidden**",
"acsBinding": "post",
"signatureConfig": {
"prefix": "ds",
"location": {
"reference": "/samlp:Response/saml:Issuer",
"action": "after"
}
},
"relayState": "https://n8n.example.com"
}Full SAML SSO configuration. Every field must be provided; use empty strings or empty arrays when a value is unset. Partial updates are not supported.
Identity provider metadata in XML format. Use an empty string to clear stored metadata (also clears metadataUrl when no URL is provided). Use the redaction placeholder from a prior GET to leave an existing value unchanged.
URL to fetch identity provider metadata from. Use an empty string to clear a stored URL.
Whether to ignore SSL certificate errors when fetching metadata from a URL.
falseSAML login request binding.
redirectPossible values: Whether SAML login is enabled.
falseLabel shown on the SAML login button.
SAMLWhether authentication requests are signed.
falseWhether signed assertions are required.
trueWhether signed SAML messages are required.
truePEM-encoded private key for signing SAML AuthnRequests. Use an empty string to clear an existing key, or the redaction placeholder from a prior GET to leave it unchanged.
PEM-encoded certificate containing the public key matching the signing private key. Use an empty string when unused or to clear an existing certificate.
Assertion Consumer Service binding.
postPossible values: Default relay state value for SAML requests. Use an empty string when unused.
https://n8n.example.comService provider entity ID. Returned by GET for convenience; ignored on write so a GET response can be sent back as a PUT body.
https://n8n.example.com/rest/sso/saml/metadataAssertion Consumer Service return URL. Returned by GET for convenience; ignored on write so a GET response can be sent back as a PUT body.
https://n8n.example.com/rest/sso/saml/acsOperation successful.
Service provider entity ID (metadata URL).
https://n8n.example.com/rest/sso/saml/metadataAssertion Consumer Service (ACS) return URL.
https://n8n.example.com/rest/sso/saml/acsIdentity provider metadata in XML format. Redacted on read when set because it contains IdP certificates; never echoed back in plaintext. Use an empty string when unset.
**hidden**URL to fetch identity provider metadata from. Use an empty string when unset.
Whether to ignore SSL certificate errors when fetching metadata from a URL.
falseSAML login request binding.
redirectPossible values: Whether SAML login is enabled.
falseLabel shown on the SAML login button.
SAMLWhether authentication requests are signed.
falseWhether signed assertions are required.
trueWhether signed SAML messages are required.
truePEM-encoded private key for signing SAML AuthnRequests. Redacted on read when set; never echoed back in plaintext. Use an empty string when unset.
**hidden**PEM-encoded certificate containing the public key matching the signing private key. Redacted on read when set; never echoed back in plaintext. Use an empty string when unset.
**hidden**Assertion Consumer Service binding.
postPossible values: Default relay state value for SAML requests. Use an empty string when unset.
https://n8n.example.comThe request is invalid or provides malformed data.
Unauthorized
Forbidden
Conflict
PUT /api/v1/settings/sso/saml HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 685
{
"mapping": {
"email": "text",
"firstName": "text",
"lastName": "text",
"userPrincipalName": "text",
"n8nInstanceRole": "text",
"n8nProjectRoles": [
"text"
]
},
"metadata": "text",
"metadataUrl": "text",
"ignoreSSL": false,
"loginBinding": "redirect",
"loginEnabled": false,
"loginLabel": "SAML",
"authnRequestsSigned": false,
"wantAssertionsSigned": true,
"wantMessageSigned": true,
"signingPrivateKey": "text",
"signingCertificate": "text",
"acsBinding": "post",
"signatureConfig": {
"prefix": "ds",
"location": {
"reference": "/samlp:Response/saml:Issuer",
"action": "after"
}
},
"relayState": "https://n8n.example.com",
"entityID": "https://n8n.example.com/rest/sso/saml/metadata",
"returnUrl": "https://n8n.example.com/rest/sso/saml/acs"
}{
"entityID": "https://n8n.example.com/rest/sso/saml/metadata",
"returnUrl": "https://n8n.example.com/rest/sso/saml/acs",
"mapping": {
"email": "text",
"firstName": "text",
"lastName": "text",
"userPrincipalName": "text",
"n8nInstanceRole": "text",
"n8nProjectRoles": [
"text"
]
},
"metadata": "**hidden**",
"metadataUrl": "text",
"ignoreSSL": false,
"loginBinding": "redirect",
"loginEnabled": false,
"loginLabel": "SAML",
"authnRequestsSigned": false,
"wantAssertionsSigned": true,
"wantMessageSigned": true,
"signingPrivateKey": "**hidden**",
"signingCertificate": "**hidden**",
"acsBinding": "post",
"signatureConfig": {
"prefix": "ds",
"location": {
"reference": "/samlp:Response/saml:Issuer",
"action": "after"
}
},
"relayState": "https://n8n.example.com"
}Last updated
Was this helpful?