@Override
    public Optional<User> getUserBySubjectId(final String subjectId) {
        final Optional<User> optUser = JooqUtil.contextResult(securityDbConnProvider, context -> context
                        .select()
                        .from(STROOM_USER)
                        .where(STROOM_USER.NAME.eq(subjectId))
                        .and(STROOM_USER.IS_GROUP.eq(false))
                        .fetchOptional())
                .map(RECORD_TO_USER_MAPPER);
        LOGGER.debug("getUserBySubjectId - subjectId: {}, returning: {}", subjectId, optUser);
        return optUser;
    }
Get user or group by their UUID.
stroom-security/stroom-security-impl-db/src/main/java/stroom/security/impl/db/UserDaoImpl.java