> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qobra.co/llms.txt
> Use this file to discover all available pages before exploring further.

# create_user

> Create one user in your company, not invited yet, and return them. Inviting, role, email and status stay in the web app.

Create one user in your company, not invited yet, and return them.

One user per call, as **Add user manually** does in the Qobra web app. The
user gets the company's default role and the `Not invited` status. Qobra links
them to the user holding the same email in each connected integration (CRM,
HRIS). Qobra looks these users up live, so the call can take a while. Inviting
the user, and changing their role, email or status, happen in the Qobra web
app only.

An email a user of the company already holds creates nothing. The call returns
that user with `created` set to false, archived users included. You restore an
archived user in the Qobra web app.

The call is refused, and nothing is created, when:

* the email is invalid.
* the email cannot be used, for example because a user of another company
  already holds it.
* the caller lacks write permission on users.

The user is still created when part of the setup could not be done. Each part
left undone is listed in `warnings`:

* the license, when no seat is free or the company has no licenses activated.
  [`update_user`](https://docs.qobra.co/mcp_documentation/tools/update_user) gives it later.
* the link to an integration whose user is already linked to another Qobra
  user, that did not answer, or that is paused.

Once created, set up the user with the tools that change any user:

* [`update_user_managers`](https://docs.qobra.co/mcp_documentation/tools/update_user_managers) for
  who they report to.
* [`update_user_attribute_values`](https://docs.qobra.co/mcp_documentation/tools/update_user_attribute_values)
  for their attributes.
* [`update_group`](https://docs.qobra.co/mcp_documentation/tools/update_group) and
  [`update_plan`](https://docs.qobra.co/mcp_documentation/tools/update_plan) for their groups and
  plans. These two take the whole membership, so read it first with
  [`get_group`](https://docs.qobra.co/mcp_documentation/tools/get_group) or
  [`get_plan`](https://docs.qobra.co/mcp_documentation/tools/get_plan).

Every call needs write permission on users. Every write is recorded in the
audit trail as the `Qobra MCP` agent.

```json Example arguments theme={null}
{
  "email": "jane.doe@acme.com",
  "name": "Jane Doe",
  "licensed": true
}
```

## Parameters

> [accordion] Body
>
> **email** `string` *required*
>
> The email the user logs in with.
>
> **name** `string` *required*
>
> Display name.
>
> **licensed** `boolean` (default: false)
>
> True to give the user a license (a paid seat). Only licensed users have
> their compensations calculated. update\_user gives or takes it later.

## Response

> [accordion] Body
>
> **user** `object`
>
> The user created, or the one already holding the email when `created` is
> false.
>
> **object properties**
>
> **id** `string`
>
> **resource\_url** `string`
>
> Deep link to open this user in the Qobra web app.
>
> **name** `string`
>
> **email** `string`
>
> **status** `string`
>
> pending (invited, not logged in yet), active, inactive (deactivated) or
> archived (has left the company). One of: `inactive`, `pending`,
> `active`, `archived`.
>
> **role** `object`
>
> The user's permission role. Its id goes to get\_role.
>
> **object properties**
>
> **id** `string`
>
> **name** `string`
>
> **resolved** `boolean`
>
> **manager** `object`
>
> The direct manager today; null when none. get\_user lists past managers
> with dates.
>
> **object properties**
>
> **id** `string`
>
> **email** `string`
>
> **name** `string`
>
> **payment\_currency** `string`
>
> Currency the user is paid in. One of: `AED`, `AFN`, `ALL`, `AMD`, `ANG`,
> `AOA`, `ARS`, `AUD`, `AWG`, `AZN`, `BAM`, `BBD`, `BDT`, `BGN`, `BHD`,
> `BIF`, `BMD`, `BND`, `BOB`, `BOV`, `BRL`, `BSD`, `BTN`, `BWP`, `BYR`,
> `BZD`, `CAD`, `CDF`, `CHF`, `CLF`, `CLP`, `CNY`, `COP`, `COU`, `CRC`,
> `CUC`, `CUP`, `CVE`, `CZK`, `DJF`, `DKK`, `DOP`, `DZD`, `EGP`, `ERN`,
> `ETB`, `EUR`, `FJD`, `FKP`, `GBP`, `GEL`, `GHS`, `GIP`, `GMD`, `GNF`,
> `GTQ`, `GYD`, `HKD`, `HNL`, `HRK`, `HTG`, `HUF`, `IDR`, `ILS`, `INR`,
> `IQD`, `IRR`, `ISK`, `JMD`, `JOD`, `JPY`, `KES`, `KGS`, `KHR`, `KMF`,
> `KPW`, `KRW`, `KWD`, `KYD`, `KZT`, `LAK`, `LBP`, `LKR`, `LRD`, `LSL`,
> `LTL`, `LVL`, `LYD`, `MAD`, `MDL`, `MGA`, `MKD`, `MMK`, `MNT`, `MOP`,
> `MRO`, `MUR`, `MVR`, `MWK`, `MXN`, `MYR`, `MZN`, `NAD`, `NGN`, `NIO`,
> `NOK`, `NPR`, `NZD`, `OMR`, `PAB`, `PEN`, `PGK`, `PHP`, `PKR`, `PLN`,
> `PYG`, `QAR`, `RMB`, `RON`, `RSD`, `RUB`, `RWF`, `SAR`, `SBD`, `SCR`,
> `SDG`, `SEK`, `SGD`, `SHP`, `SLL`, `SOS`, `SRD`, `STD`, `SVC`, `SYP`,
> `SZL`, `THB`, `TJS`, `TMT`, `TND`, `TOP`, `TRY`, `TTD`, `TWD`, `TZS`,
> `UAH`, `UGX`, `USD`, `UYI`, `UYU`, `UZS`, `VEF`, `VND`, `VUV`, `WON`,
> `WST`, `XAF`, `XAG`, `XAU`, `XCD`, `XOF`, `XPD`, `XPF`, `XPT`, `XSU`,
> `YER`, `ZAR`, `ZMK`, `ZWL`.
>
> **calculation\_currency** `string`
>
> Currency the user's commissions are computed in. One of: `AED`, `AFN`,
> `ALL`, `AMD`, `ANG`, `AOA`, `ARS`, `AUD`, `AWG`, `AZN`, `BAM`, `BBD`,
> `BDT`, `BGN`, `BHD`, `BIF`, `BMD`, `BND`, `BOB`, `BOV`, `BRL`, `BSD`,
> `BTN`, `BWP`, `BYR`, `BZD`, `CAD`, `CDF`, `CHF`, `CLF`, `CLP`, `CNY`,
> `COP`, `COU`, `CRC`, `CUC`, `CUP`, `CVE`, `CZK`, `DJF`, `DKK`, `DOP`,
> `DZD`, `EGP`, `ERN`, `ETB`, `EUR`, `FJD`, `FKP`, `GBP`, `GEL`, `GHS`,
> `GIP`, `GMD`, `GNF`, `GTQ`, `GYD`, `HKD`, `HNL`, `HRK`, `HTG`, `HUF`,
> `IDR`, `ILS`, `INR`, `IQD`, `IRR`, `ISK`, `JMD`, `JOD`, `JPY`, `KES`,
> `KGS`, `KHR`, `KMF`, `KPW`, `KRW`, `KWD`, `KYD`, `KZT`, `LAK`, `LBP`,
> `LKR`, `LRD`, `LSL`, `LTL`, `LVL`, `LYD`, `MAD`, `MDL`, `MGA`, `MKD`,
> `MMK`, `MNT`, `MOP`, `MRO`, `MUR`, `MVR`, `MWK`, `MXN`, `MYR`, `MZN`,
> `NAD`, `NGN`, `NIO`, `NOK`, `NPR`, `NZD`, `OMR`, `PAB`, `PEN`, `PGK`,
> `PHP`, `PKR`, `PLN`, `PYG`, `QAR`, `RMB`, `RON`, `RSD`, `RUB`, `RWF`,
> `SAR`, `SBD`, `SCR`, `SDG`, `SEK`, `SGD`, `SHP`, `SLL`, `SOS`, `SRD`,
> `STD`, `SVC`, `SYP`, `SZL`, `THB`, `TJS`, `TMT`, `TND`, `TOP`, `TRY`,
> `TTD`, `TWD`, `TZS`, `UAH`, `UGX`, `USD`, `UYI`, `UYU`, `UZS`, `VEF`,
> `VND`, `VUV`, `WON`, `WST`, `XAF`, `XAG`, `XAU`, `XCD`, `XOF`, `XPD`,
> `XPF`, `XPT`, `XSU`, `YER`, `ZAR`, `ZMK`, `ZWL`.
>
> **licensed** `boolean`
>
> Whether the user holds a license (a paid seat). Only licensed users have
> their compensations calculated: an unlicensed user's statement is never
> computed.
>
> **license\_missing** `boolean`
>
> True when the user is unlicensed but has compensations that need a seat,
> so the statement cannot be computed: the warning banner on a statement.
>
> **integrations** `object[]`
>
> One link per connected integration (HRIS, CRM...) the user is matched
> in. Empty means matched in none: missing from every sync.
>
> **object properties**
>
> **integration** `object`
>
> The company connection this link belongs to.
>
> **object properties**
>
> **id** `string`
>
> **name** `string`
>
> **resolved** `boolean`
>
> **user\_integration\_id** `string`
>
> The user's id in the customer's own system.
>
> **last\_synced\_at** `string`
>
> When the user's identity was last refreshed from the HRIS. Null: never
> synced (no HRIS, or never matched in it).
>
> **created** `boolean`
>
> False when a user of the company already held this email: nothing was
> created, and `user` is that user as they stand, archived ones included.
>
> **warnings** `string[]`
>
> What the creation could not do, each to tell the person: a license not
> given, an integration the user is not linked in. Empty when nothing was left
> undone.
