Create/Update User
Endpoint: PUT /api/users/{id}
Creates or updates a user in your Conductor cluster. The invoking user must be an Admin to the Conductor cluster.
Path parameters
| Parameter | Description | Type | Required/ Optional |
|---|---|---|---|
| id | The user's email address. | string | Required |
Request body
| Parameter | Description | Type | Required/ Optional |
|---|---|---|---|
| name | A display name for the user. | string | Required. |
| roles | The role to assign for the user. Supported values:
| string | Required. |
| groups | The groups that the user should be part of. This provides additional group-level permissions to the user. | string | Optional. |
Response
Returns the created or updated user object, including the user's id, name, roles, and groups. Returns 403 if the invoking user is not an Admin.
Examples
Create a new user
Request
curl -X 'PUT' \
'https://<YOUR-SERVER-URL>/api/users/user%40example.com' \
-H 'accept: application/json' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"name": "John Doe",
"roles": [
"ADMIN"
]
}'
Response
{
"id": "user@example.com",
"name": "John Doe",
"roles": [
{
"name": "ADMIN",
"permissions": [
{
"name": "METADATA_MANAGEMENT"
},
{
"name": "ADMIN_MANAGEMENT"
},
{
"name": "METADATA_VIEW"
},
{
"name": "PERMISSION_MANAGEMENT"
},
{
"name": "USER_MANAGEMENT"
},
{
"name": "EVENT_HANDLER_MANAGEMENT"
},
{
"name": "PROMPT_MANAGEMENT"
},
{
"name": "WORKFLOW_MANAGEMENT"
},
{
"name": "API_GATEWAY_MANAGEMENT"
},
{
"name": "API_GATEWAY_VIEW"
},
{
"name": "PUBLISHER_MANAGEMENT"
},
{
"name": "WORKFLOW_SEARCH"
},
{
"name": "AUTHORIZATION_MANAGEMENT"
},
{
"name": "SCHEDULE_MANAGEMENT"
},
{
"name": "BULK_MANAGEMENT"
},
{
"name": "APPLICATION_MANAGEMENT"
}
]
}
],
"groups": [],
"uuid": "20d6f75b-38ba-48a4-aedd-5a1acc65c15f",
"contactInformation": {},
"applicationUser": false,
"orkesWorkersApp": false,
"orkesApiGateway": false,
"orkesApp": false
}
Update an existing user
Request
curl -X 'PUT' \
'https://<YOUR-SERVER-URL>/api/users/user%40example.com' \
-H 'accept: application/json' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"name": "John Doe",
"roles": [
"ADMIN"
],
"groups": [
"TechWriters"
]
}'
Response
{
"id": "user@example.com",
"name": "John Doe",
"roles": [
{
"name": "ADMIN",
"permissions": [
{
"name": "API_GATEWAY_VIEW"
},
{
"name": "API_GATEWAY_MANAGEMENT"
},
{
"name": "WORKFLOW_MANAGEMENT"
},
{
"name": "PROMPT_MANAGEMENT"
},
{
"name": "EVENT_HANDLER_MANAGEMENT"
},
{
"name": "USER_MANAGEMENT"
},
{
"name": "PERMISSION_MANAGEMENT"
},
{
"name": "METADATA_VIEW"
},
{
"name": "ADMIN_MANAGEMENT"
},
{
"name": "METADATA_MANAGEMENT"
},
{
"name": "APPLICATION_MANAGEMENT"
},
{
"name": "BULK_MANAGEMENT"
},
{
"name": "SCHEDULE_MANAGEMENT"
},
{
"name": "AUTHORIZATION_MANAGEMENT"
},
{
"name": "WORKFLOW_SEARCH"
},
{
"name": "PUBLISHER_MANAGEMENT"
}
]
}
],
"groups": [
{
"id": "TechWriters",
"description": "A dedicated group for testing for tech writers",
"roles": [
{
"name": "METADATA_MANAGER",
"permissions": [
{
"name": "API_GATEWAY_MANAGEMENT"
},
{
"name": "CREATE_INTEGRATION"
},
{
"name": "CREATE_SECRET"
},
{
"name": "METADATA_VIEW"
},
{
"name": "METADATA_MANAGEMENT"
},
{
"name": "API_GATEWAY_VIEW"
}
]
}
],
"defaultAccess": {},
"contactInformation": {}
}
],
"uuid": "20d6f75b-38ba-48a4-aedd-5a1acc65c15f",
"contactInformation": {},
"orkesWorkersApp": false,
"orkesApiGateway": false,
"applicationUser": false,
"orkesApp": false
}