@Override
        void run() {
            try {
                UserRequest request = new UserRequest();
                request.setName(username);
                ClientUtils.initClientFactory();
                UserClient userClient = ClientUtils.clientFactory.getUserClient();
                UserInfo userInfo = userClient.getByName(username);
                if (userInfo == null) {
                    throw new BusinessException(username + " not exist, please check.");
                }
                request.setId(userInfo.getId());
                request.setNewPassword(password);
                request.setAccountType(userInfo.getAccountType());
                request.setValidDays(validDays);
                request.setVersion(userInfo.getVersion());
                if (userClient.update(request) != null) {
                    System.out.println("Update user success!");
                }
            } catch (Exception e) {
                System.out.println(e.getMessage());
            }
        }
The update command used to change the fields of inlong groups.
Please refer to the document for parameters
inlong-manager/manager-client-tools/src/main/java/org/apache/inlong/manager/client/cli/UpdateCommand.java