---
title: "Create Mapping"
method: POST
path: "/sso-group-mappings/mappings"
tags: ["SSO Group Mappings"]
---

# Create Mapping

`POST /sso-group-mappings/mappings`

Create a new SSO group mapping with duplicate and target validation.

## Request body

- SSOGroupMappingCreate
  - `external_group_identifier` string, required
  - `match_type` 'exact' | 'prefix' | 'contains' | 'suffix'
  - `mapping_type` 'team' | 'role', required
  - `target_id` integer, required

## Response `201`

Successful Response

- SSOGroupMappingResponse
  - `id` integer, required
  - `uuid` string, uuid, required
  - `external_group_identifier` string, required
  - `match_type` string, required
  - `mapping_type` string, required
  - `target_id` integer, required
  - `target_name` string, nullable
  - `is_active` boolean, required
  - `created_by_email` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/50769cbf05d5/schema)
