users
Manage croit users.
GET /users
Parameters
No parameters...
Endpoint
curl -X GET http://mgmt-node:8080/api/users
Response 200
id
integer
optional
-
username
string
optional
-
roles
array
optional
-
managedByLdap
boolean
optional
-
fullName
string
optional
Full name of LDAP users
distinguishedName
string
optional
Distinguished name (DN) of LDAP users
authScheme
string
optional
[password, ldap]
password
string
optional
-
Example response
[
{
"id": 0,
"username": "string",
"roles": [
"string"
],
"managedByLdap": true,
"fullName": "string",
"distinguishedName": "string",
"authScheme": "password",
"password": "string"
}
]
POST /users
Parameters
body
object
optional
Request to create a new croit user.
Endpoint
curl -X POST http://mgmt-node:8080/api/users
Example body
{
"username": "string",
"roles": [
"admin"
]
}
Response 200
id
integer
optional
-
Example response
{
"id": 0
}
DELETE /users/{id}
Parameters
id
integer
path
-
Endpoint
curl -X DELETE http://mgmt-node:8080/api/users/{id}
PATCH /users/{id}
Parameters
id
integer
path
-
body
object
optional
-
Endpoint
curl -X PATCH http://mgmt-node:8080/api/users/{id}
Example body
{
"roles": [
"admin"
]
}
PUT /users/{id}/password
Parameters
id
integer
path
-
body
object
optional
-
Endpoint
curl -X PUT http://mgmt-node:8080/api/users/{id}/password
Example body
{
"password": "string"
}