Create the user pool first and sign in with permission to manage it. Every operation requires
--user-pool-id. Use global --provider to select Volcengine or BytePlus and the matching account and regionCommands
department create
Create a department in a user pooldepartment update
Update a department’s fields in a user pooldepartment list
List child departments in a user poolnextToken to --next-token to read subsequent pages; the CLI does not fetch every page automatically
department add-users
Add users to a departmentdepartment remove-users
Remove users from a departmentdepartment change-users
Move users from one department to anotherdepartment delete
Delete a department from a user poolVerify hierarchy and membership changes
Save the department ID returned by creation, then query the parent’s immediate children to confirm the hierarchy:remove-users removes department membership without deleting user accounts