def get_groups(groups_collection):
    """Returns a list of group names

    :param groups_collection: Mongo collection that maintains groups

    :return: List of group names
    """
    groups = groups_collection.find()
    return list(groups)