---
title: "Create a Redis Software LDAP mapping"
method: POST
path: "/v1/ldap_mappings"
tags: ["LDAP Mapping"]
---

# Create a Redis Software LDAP mapping

`POST /v1/ldap_mappings`

Create a new Redis Software LDAP mapping.

## Request body

- LdapMappingCreateRequest — Request body for creating a Redis Software LDAP mapping.
  - `account_id` integer — SM account ID.
  - `bdbs_email_alerts` string[] — UIDs of databases that LDAP mapping users will receive alerts for.
  - `cluster_email_alerts` boolean — Activate cluster email alerts for an LDAP mapping.
  - `dn` string, required — LDAP group's distinguished name.
  - `email` string — LDAP mapping's email.
  - `email_alerts` boolean — Activate email alerts for an LDAP mapping.
  - `name` string, required — LDAP mapping's name.
  - `role_uids` integer[], required — List of role uids associated with the LDAP mapping.

## Response `200`

LDAP mapping created successfully.

- LdapMapping — An API object that represents a Redis Software LDAP mapping.
  - `account_id` integer — SM account ID.
  - `bdbs_email_alerts` string[] — UIDs of databases that LDAP mapping users will receive alerts for.
  - `cluster_email_alerts` boolean — Activate cluster email alerts for an LDAP mapping.
  - `dn` string, required — LDAP group's distinguished name.
  - `email` string, required — LDAP mapping's email.
  - `email_alerts` boolean, required — Activate email alerts for an LDAP mapping.
  - `name` string, required — LDAP mapping's name.
  - `role_uids` integer[], required — List of role uids associated with the LDAP mapping.
  - `action_uid` string — Action uid. If exists - progress can be tracked by the GET /actions/<uid> API.
  - `uid` integer, required — LDAP mapping's unique uid.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `409` — Conflict

## Changes

- **2026-05-18** `cf74e76d3866` — 1 info
  - endpoint added
- **2026-01-23** `9fdf3bc7ad77` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/redis/apis/redis-software-rest-api/changes/v1/ldap_mappings/post.md)

---

[API](https://skmtc.dev/redis/apis/redis-software-rest-api.md) · [All operations](https://skmtc.dev/redis/apis/redis-software-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redis/redis-software-rest-api/revisions/caec2005b95b/schema)
