@Path("userGroups")
    public RelatedObjectSetResource getUserGroups() throws GuacamoleException {
        return new RelatedObjectSetResource(getInternalObject().getUserGroups());
    }
Returns a resource which abstracts operations available on the set of
user groups of which the User represented by this UserResource is a
member.

@return
    A resource which represents the set of user groups of which the
    User represented by this UserResource is a member.

@throws GuacamoleException
    If the group membership for this user cannot be retrieved.
guacamole/src/main/java/org/apache/guacamole/rest/user/UserResource.java