---
title: "POST /api/v1/projects/{project_id}/users"
method: POST
path: "/api/v1/projects/{project_id}/users"
tags: ["users"]
---

# POST /api/v1/projects/{project_id}/users

`POST /api/v1/projects/{project_id}/users`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/docs/api/v1/projects/:project_id/users/post.ts> (a function with typed inputs; its response is checked against the schema)

Adds the given user to the given project

## Path parameters

- `project_id` string, required

## Request body

- User: User represent an API user
  - `annotations` object: Annotations that can be added to the resource
  - `creationTimestamp` string, date-time: CreationTimestamp is a timestamp representing the server time when this object was created.
  - `deletionTimestamp` string, date-time: DeletionTimestamp is a timestamp representing the server time when this object was deleted.
  - `email` string: Email an email address of the user
  - `id` string: ID unique value that identifies the resource generated by the server. Read-Only.
  - `isAdmin` boolean: IsAdmin indicates admin role
  - `name` string: Name represents human readable name for the resource
  - `projects` ProjectGroup[]: Projects holds the list of project the user belongs to along with the group names
    - `group` string
    - `id` string
  - `userSettings` UserSettings: UserSettings represent an user settings
    - `collapseSidenav` boolean
    - `displayAllProjectsForAdmin` boolean
    - `itemsPerPage` integer
    - `lastSeenChangelogVersion` string
    - `selectProjectTableView` boolean
    - `selectedProjectId` string
    - `selectedTheme` string

## Response `201`

User

- User: User represent an API user
  - `annotations` object: Annotations that can be added to the resource
  - `creationTimestamp` string, date-time: CreationTimestamp is a timestamp representing the server time when this object was created.
  - `deletionTimestamp` string, date-time: DeletionTimestamp is a timestamp representing the server time when this object was deleted.
  - `email` string: Email an email address of the user
  - `id` string: ID unique value that identifies the resource generated by the server. Read-Only.
  - `isAdmin` boolean: IsAdmin indicates admin role
  - `name` string: Name represents human readable name for the resource
  - `projects` ProjectGroup[]: Projects holds the list of project the user belongs to along with the group names
    - `group` string
    - `id` string
  - `userSettings` UserSettings: UserSettings represent an user settings
    - `collapseSidenav` boolean
    - `displayAllProjectsForAdmin` boolean
    - `itemsPerPage` integer
    - `lastSeenChangelogVersion` string
    - `selectProjectTableView` boolean
    - `selectedProjectId` string
    - `selectedTheme` string

## Other responses

- `401`: EmptyResponse is a empty response
- `403`: EmptyResponse is a empty response
- `default`: errorResponse

---

[API](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api.md) - [All operations](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/revisions/815b9bf19db5?raw)
