users

Manage croit users.

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"
}
                

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

Example response

[
  {
    "id": 0,
    "username": "string",
    "roles": [
      "string"
    ],
    "managedByLdap": true,
    "fullName": "string",
    "distinguishedName": "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"
  ]
}