Help Center> Meeting> Server API Reference> User Management> Examples> Example 2: Managing Enterprise Users
Updated on 2023-12-22 GMT+08:00

Example 2: Managing Enterprise Users

Scenarios

After logging in to Huawei Cloud Meeting Management Platform using an enterprise administrator account on a third-party application, you can query, add, modify, and delete users in the enterprise.

Service Process

Figure 1 Process of managing enterprise users
  1. A third-party application logs in to Huawei Cloud Meeting Management Platform using an enterprise administrator account and password to obtain a token.
  2. The third-party application sends an authentication request to API Gateway.
  3. After receiving the request, API Gateway sends an account authentication request to Huawei Cloud Meeting Management Platform.
  4. Huawei Cloud Meeting Management Platform returns a token after successful authentication.
  5. API Gateway returns the token information to the third-party application.
  6. To query enterprise users by page, set parameters such as the query offset and search criteria.
  7. The third-party application sends a request carrying these parameters to API Gateway to query users by page.
  8. API Gateway sends a pagination query request to Huawei Cloud Meeting Management Platform.
  9. Huawei Cloud Meeting Management Platform returns the user list to API Gateway.
  10. API Gateway returns the user list to the third-party application.
  11. To query user details, set the enterprise user account parameters.
  12. The third-party application sends a request carrying the user account parameters to API Gateway to query user details.
  13. API Gateway sends a request to Huawei Cloud Meeting Management Platform to query user details.
  14. Huawei Cloud Meeting Management Platform returns the user details to API Gateway.
  15. API Gateway returns the user details to the third-party application.
  16. To add a user, set parameters such as the username, user account, and mobile number.
  17. The third-party application sends a request carrying these parameters to API Gateway to add a user.
  18. API Gateway sends a request to Huawei Cloud Meeting Management Platform to add the user.
  19. Huawei Cloud Meeting Management Platform adds the user and returns the details about the new user to API Gateway.
  20. API Gateway returns the details about the new user to the third-party application.
  21. To modify details about a user, set parameters such as the user account, username, and mobile number.
  22. The third-party application sends a request carrying these parameters to API Gateway to modify the user details.
  23. API Gateway sends a request to Huawei Cloud Meeting Management Platform to modify the user details. Huawei Cloud Meeting Management Platform modifies the user details.
  24. To change the user status in a batch, set the user account list and status.
  25. The third-party application sends a request carrying parameters to API Gateway to change the user status in a batch.
  26. API Gateway sends the request to Huawei Cloud Meeting Management Platform to change the status of users. Huawei Cloud Meeting Management Platform changes the status of users.
  27. To delete users in batches, set the user account list parameter.
  28. The third-party application sends a request carrying parameters to API Gateway.
  29. API Gateway sends a request to Huawei Cloud Meeting Management Platform to delete users in batches. Huawei Cloud Meeting Management Platform deletes users.
  30. Steps 6 to 29 in the preceding figure are APIs for managing users in the enterprise. You can call them in any sequence.