---
title: "Create a SCIM organization role mapping"
method: POST
path: "/scim/organization-role-mappings"
tags: ["SCIM"]
---

# Create a SCIM organization role mapping

`POST /scim/organization-role-mappings`

## Request

- Base URL: `https://openrouter.ai/api/v1`
- URL: `https://openrouter.ai/api/v1/scim/organization-role-mappings`
- Auth: HTTP bearer

Map a SCIM group to an organization role (`admin` or `member`). Members of the group receive that organization role on their next SCIM sync. Organization role mapping must be enabled for the SCIM directory in the dashboard; otherwise writes return `409`. [Management key](/docs/guides/overview/auth/management-api-keys) required.

## Request body

- CreateScimOrganizationRoleMappingRequest
  - `role` 'admin' | 'member', required: Organization role granted to members of the mapped SCIM group.
  - `scim_group_id` string, uuid, required

## Response `201`

SCIM organization role mapping created

- CreateScimOrganizationRoleMappingResponse
  - `data` ScimOrganizationRoleMapping, required
    - `created_at` string, required
    - `id` string, required
    - `precedence` integer, required: Resolution order when a user is in several mapped groups; lower wins.
    - `role` 'admin' | 'member', required: Organization role granted to members of the mapped SCIM group.
    - `scim_group_display_name` string, required
    - `scim_group_id` string, uuid, nullable, required: ID of the SCIM group (from `GET /scim/groups`). `null` when the identity provider group has not been synced yet.
    - `updated_at` string, required

## Other responses

- `400`: Bad Request - Invalid request parameters or malformed input
- `401`: Unauthorized - Authentication required or invalid credentials
- `403`: Forbidden - Authentication successful but insufficient permissions
- `404`: Not Found - Resource does not exist
- `409`: Conflict - Resource conflict or concurrent modification
- `500`: Internal Server Error - Unexpected server error

## Changes

- **2026-12-01** `36360154e3d1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrouterteam/apis/openrouter-api/changes/scim/organization-role-mappings/post.md)

---

[API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) - [All operations](https://skmtc.dev/openrouterteam/apis/openrouter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openrouterteam/apis/openrouter-api/revisions/f797e38f23b4?raw)
