@Override
    public ServerResponse<ListResponse<Group>> findUserGroups(final ScimRequestBuilder scimService, final String memberId) {
        return scimService.list(Group.class, EndpointPaths.GROUPS)
            .filter("members.$ref", Comparator.EQ, memberId)
            .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