| 
 ManageEngine® Applications Manager 更新用户信息API  | ||
这个API允许管理员用户更新所有用户的信息,其他用户可以更改自己的密码和电子邮件地址。
请求示例
XML请求:http://[ APM Host ]:[ APM Port ]/AppManager/xml/Users/update?apikey=[ API Key ]&userId=[id]&userName=[name]&role=[role]&password=[password]
JSON请求:http://[ APM Host ]:[ APM Port ]/AppManager/json/Users/update?apikey=[ API Key ]&userId=[id]&userName=[name]&role=[role]&password=[password]
管理员用户的请求参数
| 字段 | 描述 | 
| userId | 将要更新的用户Id。如果未提供此信息,将会默认获取唯一的API所有者ID。 | 
| userName | 用户的用户名。(用户名默认为“admin”的无法修改) | 
| role | 新用户的用户组。(用户角色默认为“admin”的无法修改) | 
| password | 用户的新密码。 | 
| oldPassword | 用户的旧密码。 | 
| 用户的电子邮件。 | |
| description | 用户的描述。 | 
| associateGroupId | 用户需要关联的监控组ID,ID之间用逗号分隔。 | 
| associateGroupName | 用户需要关联的监控组名称,如果提供了监控组ID,这个参数将被忽略。 | 
| removeGroupId | 需要移除的用户所在的监控组ID,ID之间用逗号分隔。 | 
| removeGroupName | 需要移除的用户所在的监控组名称,如果提供了监控组ID,这个参数将被忽略。 | 
普通用户请求参数
| 字段 | 描述 | 
| password | 用户的新密码。 | 
| oldPassword | 用户的旧密码(更新密码时这个参数是强制的)。 | 
| 用户的电子邮件。 | 
请求示例:
| 
       <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>  | 
    
用户详细信息列表API  | 
API执行操作  |