
# 用户管理
| 权限         | 对应API接口                                                                                           | 授权项（Action）                        | 依赖的授权项 | IAM项目（Project） | 企业项目（Enterprise Project） |
|:---|:---|:---|:---|:---|:---|
| 创建VPN用户    | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users                          | vpn:p2cVpnUser:create              | -      | √              | √                        |
| 批量创建VPN用户  | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/batch-create             | vpn:p2cVpnUser:batchCreate         | -      | √              | √                        |
| 查询VPN用户列表  | GET /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users                           | vpn:p2cVpnUser:list                | -      | √              | √                        |
| 修改VPN用户    | PUT /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id}                 | vpn:p2cVpnUser:update              | -      | √              | √                        |
| 查询VPN用户    | GET /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id}                 | vpn:p2cVpnUser:get                 | -      | √              | √                        |
| 删除VPN用户    | DELETE /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id}              | vpn:p2cVpnUser:delete              | -      | √              | √                        |
| 批量删除VPN用户  | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/batch-delete             | vpn:p2cVpnUser:batchDelete         | -      | √              | √                        |
| 修改VPN用户密码  | PUT /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id}/password        | vpn:p2cVpnUser:updatePassword      | -      | √              | √                        |
| 重置VPN用户密码  | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id}/reset-password | vpn:p2cVpnUser:resetPassword       | -      | √              | √                        |
| 创建VPN用户组   | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups                         | vpn:p2cVpnGateway:createUserGroup  | -      | √              | √                        |
| 查询VPN用户组列表 | GET /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups                          | vpn:p2cVpnGateway:listUserGroup    | -      | √              | √                        |
| 修改VPN用户组   | PUT /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups/{group_id}               | vpn:p2cVpnGateway:updateUserGroup  | -      | √              | √                        |
| 查询VPN用户组   | GET /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups/{group_id}               | vpn:p2cVpnGateway:getUserGroup     | -      | √              | √                        |
| 删除VPN用户组   | DELETE /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups/{group_id}            | vpn:p2cVpnGateway:deleteUserGroup  | -      | √              | √                        |
| 添加VPN用户到组  | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups/{group_id}/add-users    | vpn:p2cVpnGateway:addUsers         | -      | √              | √                        |
| 删除组内VPN用户  | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups/{group_id}/remove-users | vpn:p2cVpnGateway:removeUsers      | -      | √              | √                        |
| 查询组内VPN用户  | GET /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups/{group_id}/users         | vpn:p2cVpnGateway:listUsersInGroup | -      | √              | √                        |
   
