private void removeFromGroups(final Namespace namespace) {
        final List<GroupArgs> groupArgsList = extractGroupArgs(namespace, REMOVE_FROM_GROUP_ARG_NAME);
        groupArgsList.forEach(groupArgs -> {
            final String userOrGroupId = groupArgs.userOrGroupId;
            final String targetGroupId = groupArgs.targetGroupId;
            final String msg = LogUtil.message("Removing '{}' from group '{}'",
                    userOrGroupId, targetGroupId);
            info(LOGGER, msg);

            try {
                final UserRef userOrGroup = getUserObject(
                        userOrGroupId, UserType.EITHER, REMOVE_FROM_GROUP_ARG_NAME);
                final UserRef targetGroup = getUserObject(
                        targetGroupId, UserType.GROUP, REMOVE_FROM_GROUP_ARG_NAME);

                userService.removeUserFromGroup(userOrGroup, targetGroup);

                logAddOrRemoveFromGroupEvent(
                        userOrGroup,
                        targetGroup,
                        true,
                        null,
                        false);
                indentedInfo(LOGGER,
                        "Removed " + userOrGroup.toDisplayString()
                        + " from group " + targetGroup.toDisplayString(),
                        "  ");

            } catch (Exception e) {
                LOGGER.debug("Error", e);
                logAddOrRemoveFromGroupEvent(
                        userOrGroupId,
                        targetGroupId,
                        false,
                        null,
                        false);
                throw new RuntimeException("Error " + msg + ":" + e.getMessage(), e);
            }
        });
    }
Creates an account in the internal identity provider
<p>
e.g manage_users ../local.yml
--createUser admin
--createGroup Administrators
--addToGroup admin Administrators
--grantPermission Administrators Administrator
stroom-app/src/main/java/stroom/app/commands/ManageUsersCommand.java