Create a new user. 

Version: v4

Required Permissions

The authenticated user must be an admin.

Request

Request Type: POST

Endpoint:

/v4/people/

 

Request Body:


The following properties are the minimum required to create a user:

{
  "accept": "accept",
  "password": "foo",
  "password2": "foo",
  "email": "abc2234@example.com",
  "name": "abc2"
}

The following request includes all configurable parameters:

{
  "accept": "accept",
  "password": "foo",
  "password2": "foo",
  "email": "abc2234@example.com",
  "name": "abc2",
  "isAdmin": false,
  "ssoPrincipal": null,
  "hadoopPrincipal": null,
  "lastLoginTime": null,
  "awsConfig": null
}

 

Response

Response Status Code - Success:  201 - Created

Response Body Example:

{
    "isDisabled": false,
    "forcePasswordChange": false,
    "state": "active",
    "id": 9,
    "email": "test@example.com",
    "name": "Test1",
    "ssoPrincipal": null,
    "hadoopPrincipal": null,
    "isAdmin": false,
    "updatedAt": "2019-01-09T20:23:31.560Z",
    "createdAt": "2019-01-09T20:23:31.560Z",
    "outputHomeDir": "/trifacta/queryResults/test@example.com",
    "lastStateChange": null,
    "fileUploadPath": "/trifacta/uploads",
    "awsConfig": null
}

Reference

Request properties:

PropertyDescription
acceptThis property must be set to accept to create the user.
password2This value confirms the value for password. These two property values must be identical.

For more information on the properties of a user, see API People Get v4.