Updated on 2023-12-22 GMT+08:00

Managing Departments

Scenarios

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

Service Process

Figure 1 Department management process
  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 departments by name, the third-party application sends a request carrying the department name parameter to API Gateway.
  7. API Gateway sends a request to Huawei Cloud Meeting Management Platform to obtain all departments of the enterprise by name.
  8. Huawei Cloud Meeting Management Platform returns the list of matched departments to API Gateway.
  9. API Gateway returns the department list to the third-party application.
  10. To query a specific department and its level-1 sub-departments, the third-party application sends a request carrying the department code to API Gateway.
  11. API Gateway sends a request to Huawei Cloud Meeting Management Platform to query the specified department and its level-1 sub-departments.
  12. Huawei Cloud Meeting Management Platform returns the department details to API Gateway.
  13. API Gateway returns the department details to the third-party application.
  14. To add a department, the third-party application sends a request carrying the department parameters to API Gateway.
  15. API Gateway sends a request to Huawei Cloud Meeting Management Platform to add the department.
  16. Huawei Cloud Meeting Management Platform adds the department and returns the new department code to API Gateway.
  17. API Gateway returns the new department code to the third-party application.
  18. To modify a department, the third-party application sends a request carrying the department code and the modified department parameters to API Gateway.
  19. API Gateway sends a request to Huawei Cloud Meeting Management Platform to modify the department.
  20. Huawei Cloud Meeting Management Platform modifies the department details.
  21. To delete a department, the third-party application sends a request carrying the department code to API Gateway.
  22. API Gateway sends a request to Huawei Cloud Meeting Management Platform to delete the department.
  23. Huawei Cloud Meeting Management Platform deletes the department.

    The department management APIs shown from steps 6 to 26 in the preceding figure can be called in any sequence.