Users
These API’s are for creating, accessing, and maintaining security users inside of CM Box.
GET /api/security/users
Retrieves a list of users
Params
noneResponse
name - name of the userid - ID of the usersearchId - id used for other APIs in searching usersExample Response
{ "name": "Example User 1", "id": "user1@fishbowlsolutions.com", "searchId": "user1\\@fishbowlsolutions\\.com", "repos": [], "roles": [], "groups": [], "type": "user", "description": "", "_key": "fb:middleware:security:users:user1\\@fishbowlsolutions\\.com"},{ "name": "Example User 2", "id": "user2@fishbowlsolutions.com", "searchId": "user2\\@fishbowlsolutions\\.com", "repos": [ { "CACHE_ROOT": "test", "id": "8cd4a8ba-0956-428f-af9e-17ff46ac2cb9", "permission": "maintainers" } ], "roles": [ "admin" ], "groups": [], "type": "user", "description": "", "_key": "fb:middleware:security:users:user2\\@fishbowlsolutions\\.com"},GET /api/security/users/:user_id
Retrieves the user based on the specified user id
Params
user_id - ID of the userResponse
name - name of the userid - ID of the usersearchId - id used for other APIs in searching usersExample Response
{ "name": "Example User 1", "id": "user1@fishbowlsolutions.com", "searchId": "user1\\@fishbowlsolutions\\.com", "repos": [], "roles": [], "groups": [], "type": "user", "description": "", "_key": "fb:middleware:security:users:user1\\@fishbowlsolutions\\.com"},POST /api/security/users/:user_id
Creates a new user
Params
user_id - ID of the new user to addRequest
id - the desired id for the new username - name of the new userdescription (optional) - description of the new userResponse
200 - OK on success
PUT /api/security/users/:user_id
Used to update a given users roles or groups
Params
user_id: ID of the user you wish to updateRequest
DELETE /api/security/users/:user_id
Used to delete a given user based on the user id
Params
user_id: ID of the user you wish to deleteResponse
200 - OK on success