Add Usergroup API


This API allows an admin user to add a user group in Applications Manager.

Syntax

For XML Response:

  • http://[ APM Host ]:[ APM Port ]/AppManager/xml/Usergroup/create?apikey=[ API Key ]&usergroupName=[ User Group Name ]&groupName=[ Group Name ]&userName=[ User Name ]
  • http://[ APM Host ]:[ APM Port ]/AppManager/xml/Usergroup/create?apikey=[ API Key ]&usergroupName=[ User Group Name ]&groupId=[ Monitor Group ID ]&userId=[ User ID ]

For JSON Response:

  • http://[ APM Host ]:[ APM Port ]/AppManager/json/Usergroup/create?apikey=[ API Key ]&usergroupName=[ User Group Name ]&groupName=[ Group Name ]&userName=[ User Name ]
  • http://[ APM Host ]:[ APM Port ]/AppManager/json/Usergroup/create?apikey=[ API Key ]&usergroupName=[ User Group Name ]&groupId=[ Monitor Group ID ]&userId=[ User ID ]

Request Parameters

The parameters involved in executing this API request are:

Field Description        
apikey The key generated using the Generate API Key option in the 'Admin' tab.
userId The Id of the user who is to be associated with the user group.
userName The name of the user to be added.
usergroupName The name of the usergroup to be added.
groupId The Id of the group is to be added.

Sample Request

  • http://app-windows:59090/AppManager/xml/Usergroup/create?apikey=93c6eb60184e41f10fba2f365060b8e3&usergroupName=sample&groupName=ApplicationsManager&userName=user
  • http://app-windows:59090/AppManager/xml/Usergroup/create?apikey=93c6eb60184e41f10fba2f365060b8e3&usergroupName=sample&groupId=10011,10000019&userId=4,5