---
title: "Add a user to the tenant"
method: POST
path: "/api/v1/tenants/{id}/users"
tags: ["tenant"]
---

# Add a user to the tenant

`POST /api/v1/tenants/{id}/users`

This can only be done by a logged in user who has the required privileges.

## Path parameters

- `id` string, required

## Request body

- UserBody
  - `username` string — Username as an email address
  - `roles` Role[]
    - `id` string
    - `name` string
    - `permissions` Permissions[]
    - `scope` string
    - `createdAt` string
    - `updatedAt` string
    - `isGlobal` boolean
    - `description` string

## Response `200`

Success

---

[API](https://skmtc.net/openintegrationhub/apis/iam-api-for-oih.md) · [All operations](https://skmtc.net/openintegrationhub/apis/iam-api-for-oih/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openintegrationhub/iam-api-for-oih/versions/016871a170fd/schema)
