Returns the list of groups for a given user or machine (default is local groups on the local machine)