Update a saml configuration

Updates the specified saml configuration by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

PATCH/v3/accounts/{id}/saml-configuration
JWT
account:write

Parameters

NameTypeInDescription
id*stringpathUnique identifier for the saml configuration.

Request Body Schema

PropertyTypeDescriptionConstraints
metadataUrlstringSAML metadata xml url.min: 1, max: 2048, format: uri
assertionConsumerServiceUrlstringSAML assertion consumer service url.min: 1, max: 2048, format: uri
entityIdstringEntity Id of SAML service provider.min: 1, max: 256
autoProvisionUsersbooleanAuto provision users.
enabledbooleanEnable or disable the SAML SSO.
defaultRolestringDefault role assigned to the new users.min: 1, max: 256
samlRoleMappingsarrayRole mapping.items: object
identityProviderRole*stringIdentity provider role.min: 1, max: 256
serviceProviderRole*stringService provider role.min: 1, max: 256
attributeMappingobject
emailarraySAML attribute name to map to the User email.items: string
firstNamearraySAML attribute name to map to the User first name.items: string
lastNamearraySAML attribute name to map to the User last name.items: string
rolearraySAML attribute name to map to the User role.items: string

Request Example

{
  "metadataUrl": "http://example.com",
  "assertionConsumerServiceUrl": "http://example.com",
  "entityId": "string",
  "autoProvisionUsers": true,
  "enabled": true,
  "defaultRole": "string",
  "samlRoleMappings": [
    {
      "identityProviderRole": "string",
      "serviceProviderRole": "string"
    }
  ],
  "attributeMapping": {
    "email": [
      "string"
    ],
    "firstName": [
      "string"
    ],
    "lastName": [
      "string"
    ],
    "role": [
      "string"
    ]
  }
}
Triggers webhook: samlConfiguration.updated
POST <your-webhook-url>
{
  "event": "samlConfiguration.updated",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "metadataUrl": "string",
    "assertionConsumerServiceUrl": "string",
    "entityId": "string",
    "enabled": true,
    "autoProvisionUsers": true,
    "defaultRole": "string",
    "samlRoleMappings": [
      {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "serviceProviderRole": "string",
        "identityProviderRole": "string"
      }
    ],
    "attributeMapping": {
      "email": [
        "string"
      ],
      "firstName": [
        "string"
      ],
      "lastName": [
        "string"
      ],
      "role": [
        "string"
      ]
    }
  },
  "triggeredAt": "string"
}

Responses

200 OK
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "metadataUrl": "string",
  "assertionConsumerServiceUrl": "string",
  "entityId": "string",
  "enabled": true,
  "autoProvisionUsers": true,
  "defaultRole": "string",
  "samlRoleMappings": [
    {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "serviceProviderRole": "string",
      "identityProviderRole": "string"
    }
  ],
  "attributeMapping": {
    "email": [
      "string"
    ],
    "firstName": [
      "string"
    ],
    "lastName": [
      "string"
    ],
    "role": [
      "string"
    ]
  }
}