Create User API


This API will allow admin to create a new user in Applications Manager.

Sample Request

For XML Response:

http://[ APM Host ]:[ APM Port ]/AppManager/xml/Users/create?apikey=[API Key]&userName=[USERNAME]&role=[ROLE]&password=[PASSWORD]

For JSON Response:

http://[ APM Host ]:[ APM Port ]/AppManager/json/Users/create?apikey=[API Key]&userName=[USERNAME]&role=[ROLE]&password=[PASSWORD]

Request Parameters

The parameters involved in the API request are described below:

Field Description
userName The user name of the user.
role User group of the new user. Possible values are OPERATOR, MANAGER, ADMIN, USER.
password Password of the new user.
email (optional) Email id of the user.
description (optional) Description of the user.
groupId (optional) Group id of the monitor groups to which the user needs to be associated. The group ids should be comma separated.
groupName (optional) Name of a monitor group to which the user needs to be associated. If groupId is provided this parameter will be ignored.

Sample Request

http://prod-server:2020/AppManager/xml/Users/create?apikey=bc343n432nmbb342243nnv324&userName=manager&role=MANAGER&password=manpass123

Sample Response

<AppManager-response uri="/AppManager/xml/users/create">
<result> <response response-code="4000">
<User email="manager" userId="6" description="manager" userName="manager" role="MANAGER">
<AssociatedGroups groupId="10000035" groupName="Applications Manager"/>
<AssociatedGroups groupId="10000037" groupName="mg1"/>
<AssociatedGroups groupId="10000038" groupName="mg2"/>
</User>
</response>
</result>
</AppManager-response>