mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
docs: add info about requiring name
OR email
This commit is contained in:
parent
4c4f6a3aaa
commit
6d433c50ab
@ -119,10 +119,14 @@ Creates a new user with the given root role.
|
||||
|
||||
**Payload properties**
|
||||
|
||||
:::info Requirements
|
||||
The payload **must** contain **at least one of** the `name` and `email` properties, though which one is up to you. For the user to be able to log in to the system, the user **must** have an email.
|
||||
:::
|
||||
|
||||
| Property name | Required | Description | Example value(s) |
|
||||
|---------------|----------|-------------------------------------------------------------------------------------------|------------------------|
|
||||
| `email` | Yes | The user's email address. | `"user@getunleash.io"` |
|
||||
| `name` | Yes | The user's name | `"Some Name"` |
|
||||
| `email` | No | The user's email address. Must be provided if `name` is not provided. | `"user@getunleash.io"` |
|
||||
| `name` | No | The user's name. Must be provided if `email` is not provided. | `"Some Name"` |
|
||||
| `rootRole` | Yes | The role to assign to the user. Can be either the role's ID or its unique name. | `2`, `"Editor"` |
|
||||
| `sendEmail` | No | Whether to send a welcome email with a login link to the user or not. Defaults to `true`. | `false` |
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user