---
title: "Create a new SAML Group Sync mapping within an organization."
method: POST
path: "/orgs/{org}/saml-group-sync/"
tags: ["orgs"]
---

# Create a new SAML Group Sync mapping within an organization.

`POST /orgs/{org}/saml-group-sync/`

Create a new SAML Group Sync mapping within an organization.

## Request body

- OrganizationGroupSyncRequest
  - `idp_key` string, required
  - `idp_value` string, required
  - `organization` string, required
  - `role` 'Manager' | 'Member'
  - `team` string, slug, required

## Response `201`

The SAML Group Sync mapping was created.

- OrganizationGroupSync
  - `idp_key` string, required
  - `idp_value` string, required
  - `role` 'Manager' | 'Member'
  - `slug_perm` string, slug
  - `team` string, slug, required

## Other responses

- `400` — Request could not be processed (see detail).
- `404` — Org namespace not found.
- `422` — Missing or invalid parameters (see detail).

---

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