# UserService

Manages users in Deployit's internal user repository. Use this service only if you're not connected to an external user repository like LDAP.

POST | /security/user/{username} | Creates a new user.
GET | /security/user/{username} | Returns the user details without the password.
PUT | /security/user/{username} | Changes the password of the indicated user.
DELETE | /security/user/{username} | Deletes the user.

## POST /security/user/{username}

Creates a new user.

Permissions
  `security#edit`

Parameters

  Path | username | String | the login name
  Request body | application/xml | User | the details of the user, containing username and new password. Username in here should be the same as the username in the URL path.

Response body
  User - the created user, without the password.
  Content type: application/xml

## GET /security/user/{username}

Returns the user details without the password.

Permissions
  `security#edit`

Parameters

  Path | username | String | the login name of the user.

Response body
  User - the details of the user.
  Content type: application/xml

## PUT /security/user/{username}

Changes the password of the indicated user.

Permissions
  `security#edit`

Parameters

  Path | username | String | the login name of the user.
  Request body | application/xml | User | the details of the user, containing username and new password. Username in here should be the same as the username in the URL path.

Response body
  Empty

## DELETE /security/user/{username}

Deletes the user.

Permissions
  `security#edit`

Parameters

  Path | username | String | the login name of the user.

Response body
  Empty