Create a User
Learn about creating a user.
Create a user
Endpoint | Method | Key value | Required fields |
---|---|---|---|
v2/users | POST | username | partition , roles |
This request creates a user.
Sample request - Create user
{
"username": "[email protected]",
"email": "[email protected]",
"fullName": "Joe Smith",
"isDisabled": true,
"passwordExpirationDisabled": false,
"defaultPartition": {
"uuid": "37f038e2-22ec-4e5b-93f4-f065bea65542",
"name": "Vertex Cloud"
},
"partitionRoles": [
{
"partition": {
"uuid": "37f038e2-22ec-4e5b-93f4-f065bea65542",
"name": "Vertex Cloud"
},
"roles": [
{
"uuid": "37f038e2-22ec-4e5b-93f4-f065bea65542",
"sourceId": 1,
"name": "User Role Name",
"description": "User Role Description"
}
]
}
],
"password": "string",
"passwordExpirationDate": "2020-01-01",
"isSSOUser": false,
"isServiceAccount": false,
"locale": "en_US"
}
Sample response- Create user
{
"uuid": "37f038e2-22ec-4e5b-93f4-f065bea65542",
"username": "[email protected]",
"email": "[email protected]",
"fullName": "Joe Smith",
"isDisabled": true,
"passwordExpirationDisabled": false,
"defaultPartition": {
"uuid": "37f038e2-22ec-4e5b-93f4-f065bea65542",
"name": "Vertex Cloud"
},
"partitionRoles": [
{
"partition": {
"uuid": "37f038e2-22ec-4e5b-93f4-f065bea65542",
"name": "Vertex Cloud"
},
"roles": [
{
"uuid": "37f038e2-22ec-4e5b-93f4-f065bea65542",
"sourceId": 1,
"name": "User Role Name",
"description": "User Role Description"
}
]
}
],
"passwordExpirationDate": "2020-01-01",
"isSSOUser": false,
"isServiceAccount": false,
"locale": "en_US"
}
Updated 3 months ago