@Override
        void run() {
            try {
                TenantRoleRequest request = new TenantRoleRequest();
                request.setId(id);
                ClientUtils.initClientFactory();
                InlongTenantRoleClient roleClient = ClientUtils.clientFactory.getInlongTenantRoleClient();
                TenantRoleInfo roleInfo = roleClient.get(id);
                if (roleInfo == null) {
                    throw new BusinessException(id + " not exist, please check.");
                }
                request.setUsername(roleInfo.getUsername());
                request.setDisabled(roleInfo.getDisabled());
                request.setVersion(roleInfo.getVersion());
                if (StringUtils.isNotEmpty(roleCode)) {
                    request.setRoleCode(roleCode);
                } else {
                    request.setRoleCode(roleInfo.getRoleCode());
                }
                request.setTenant(roleInfo.getTenant());
                if (roleClient.update(request)) {
                    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