created routine to get groups from the icommonsapi