---
title: "POST /authz/users"
method: POST
path: "/authz/users"
tags: ["authz"]
---

# POST /authz/users

`POST /authz/users`

## Request

- Base URL: `https://demo.osrd.fr/api`
- URL: `https://demo.osrd.fr/api/authz/users`
- Auth: none declared
- TypeScript: <https://skmtc.dev/openrailassociation/apis/osrd-editoast/docs/authz/users/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `groups` integer[], required
  - `identities` string[], required
  - `name` string, required
  - `roles` Role[], required

## Response `201`

User created

- object
  - `groups` object[], required
    - `id` integer, required
    - `name` string, required
  - `id` integer, required
  - `identities` string[], required
  - `name` string, required
  - `roles` Role[], required

## Other responses

- `404`
- `409`
- `422`
- `500`
- `503`

## Changes

- **2026-11-06** `8c418531f9b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrailassociation/apis/osrd-editoast/changes/authz/users/post.md)

---

[API](https://skmtc.dev/openrailassociation/apis/osrd-editoast.md) - [All operations](https://skmtc.dev/openrailassociation/apis/osrd-editoast/llms.txt) - [OpenAPI document](https://skmtc.dev/openrailassociation/apis/osrd-editoast/revisions/8c418531f9b5?raw)
