Invite User
Invite a new user with email and roles.
POST /api/users/inviteThis endpoint is for admins to invite new users to the system.
This will generate a random password and send an email to notify the user.
Request Body
{
"email": "user@example.com",
"roles": ["DEV_USER"]
}| Property | Type | Required | Description |
|---|---|---|---|
email | string | yes | The email address of the user. |
roles | array | no | The roles of the user. |
Response
{
"data": [
{
"userId": "user-123",
"email": "user@example.com",
"roles": ["DEV_USER"]
}
],
"status": "OK",
"code": 200,
"timestamp": 1234567890,
"meta": {}
}User invitation sends an Invitation Email to notify the user.