@ Override public List < String > getGroups ( String user ) throws IOException { List < String > groups = CommonUtils . getUnixGroups ( user ) ; // remove duplicated primary group return new ArrayList <> ( new LinkedHashSet <> ( groups ) ) ; }
Returns list of groups for a user .