public void removeUserFromGroup(final ScimRequestBuilder scimService, final Group group, final User user) {
        val path = "members[$ref eq \"" + user.getId().orElseThrow() + "\"]";
        scimService.patch(Group.class, EndpointPaths.GROUPS, group.getId().orElseThrow())
            .addOperation()
            .op(PatchOp.REMOVE)
            .path(path)
            .build()
            .sendRequest();
    }
Remove user from group.

@param scimService the scim service
@param group       the group
@param user        the user
support/cas-server-support-scim-core/src/main/java/org/apereo/cas/scim/v2/BaseScimService.java