---
title: "Create Partner User"
method: POST
path: "/api/organizations/{org_id}/users"
tags: ["Users"]
---

# Create Partner User

`POST /api/organizations/{org_id}/users`

Creates a new user in the specified organization and assigns the requested permissions roles.

> 🚧 Requires partner key
>
> User endpoints are only accessible using [partner keys](../../../../guides/obtaining-api-keys#partner-keys).

The new user receives an invitation email prompting them to set up their
account. Role assignments take effect as soon as the invitation is accepted.

## Path parameters

- `org_id` string, uuid, required — Unique identifier of the organization the user belongs to.

## Headers

- `X-Polytomic-Version` string

## Request body

- CreateUserRequestSchema
  - `email` string, required — Email address used to sign the user in and receive notifications.
  - `role` string — Deprecated legacy role name. Use role_ids instead; setting both role and role_ids in the same request is rejected.
  - `role_ids` string[] — Identifiers of the permissions roles to assign to the user. Must contain at least one entry when provided.

## Response `200`

OK

- UserEnvelope
  - `data` User
    - `email` string — Email address used to sign in and receive notifications.
    - `id` string, uuid — Unique identifier of the user.
    - `organization_id` string, uuid — Unique identifier of the organization the user belongs to.
    - `role` string — Deprecated legacy role name. Use role_ids instead.
    - `role_ids` string[], nullable — Identifiers of the permissions roles assigned to the user.

## Other responses

- `403` — Forbidden
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.net/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/versions/5e9bcd4cfb2d/schema)
