Retrieving groups from API