Create a new user.

Method

POST /user/create

Parameters

Request Body

A JSON object with the following properties:

Name Type Description
profile Array A JSON object containing variable key-value pairs. The object contains the following properties: id (String), firstName (String), lastName (String) and email (String).
credentials Array A JSON object containing variable key-value pairs. The object contains the following property: password (String).

Result

This method returns no content.

Response Codes

Code Media type Description
204 Request successful.
403 application/json Identity service is read-only (Cannot modify users / groups / memberships).
500 application/json The user could not be created due to an internal server error. See the Introduction for the error response format.

Example

Request

POST /user/create

Request Body:

  1. {"profile":
  2. {"id": "jonny1",
  3. "firstName":"John",
  4. "lastName":"Doe",
  5. "email":"aNewEmailAddress"},
  6. "credentials":
  7. {"password":"s3cret"}
  8. }

Response

Status 204. No content.

原文: https://docs.camunda.org/manual/7.9/reference/rest/user/post-create/