def fill_auth_list_from_groups(self, auth_provider, user_groups, auth_list):
        group_names = [item for item in auth_provider if item.endswith('%')]
        if group_names:
            for group_name in group_names:
                if group_name.rstrip("%") in user_groups:
                    for matcher in auth_provider[group_name]:
                        auth_list.append(matcher)
        return auth_list
Returns a list of authorisation matchers that a user is eligible for.
dataset/ETHPy150Open saltstack/salt/salt/utils/minions.py/CkMinions.fill_auth_list_from_groups