@Override
    public ServerResponse<ListResponse<User>> findUser(final ScimRequestBuilder scimService, final String uid) {
        return scimService.list(User.class, EndpointPaths.USERS)
            .count(1)
            .filter("userName", Comparator.EQ, uid)
            .build()
            .get()
            .sendRequest();
    }
This is {@link BaseScimService}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-scim-core/src/main/java/org/apereo/cas/scim/v2/BaseScimService.java