---
title: "Update an organization saml configuration"
method: PATCH
path: "/v3/organizations/{id}/saml-configuration"
tags: ["OrganizationSamlConfigurations"]
---

# Update an organization saml configuration

`PATCH /v3/organizations/{id}/saml-configuration`

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

## Path parameters

- `id` string, required

## Request body

- OrganizationSamlConfigurationUpdateRequestModel
  - `metadataUrl` string, uri, nullable — SAML metadata xml url.
  - `assertionConsumerServiceUrl` string, uri, nullable — SAML assertion consumer service url.
  - `entityId` string, nullable — Entity Id of SAML service provider.
  - `autoProvisionUsers` boolean, nullable — Auto provision users.
  - `enabled` boolean, nullable — Enable or disable the SAML SSO.
  - `attributeMapping` OrganizationSamlAttributeMappingRequestModel
    - `email` string[], nullable — SAML attribute name to map to the User email.
    - `firstName` string[], nullable — SAML attribute name to map to the User first name.
    - `lastName` string[], nullable — SAML attribute name to map to the User last name.
    - `userGroup` string[], nullable — SAML attribute name to map to the User user group.

## Response `200`

OK

- OrganizationSamlConfigurationDto
  - `id` string, uuid, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `metadataUrl` string, required
  - `assertionConsumerServiceUrl` string, required
  - `entityId` string, required
  - `enabled` boolean, required
  - `autoProvisionUsers` boolean, required
  - `attributeMapping` OrganizationSamlAttributeMappingDto, required
    - `email` string[], required
    - `firstName` string[], required
    - `lastName` string[], required
    - `userGroup` string[], required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Server Error

---

[API](https://skmtc.net/cryptlex/apis/cryptlex-web-api.md) · [All operations](https://skmtc.net/cryptlex/apis/cryptlex-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cryptlex/cryptlex-web-api/revisions/ec1259c12475/schema)
