@Override
    public void filterExternalObject(UserContext userContext, APIUserGroup object)
            throws GuacamoleException {

        // Filter object attributes by defined schema
        object.setAttributes(filterAttributes(userContext.getUserGroupAttributes(),
                object.getAttributes()));

    }
Translator which converts between UserGroup objects and APIUserGroup
objects.
guacamole/src/main/java/org/apache/guacamole/rest/usergroup/UserGroupObjectTranslator.java