def members(name, members_list):

    retcode = __salt__['cmd.retcode']('pw groupmod {0} -M {1}'.format(
        name, members_list), python_shell=False)

    return not retcode
Replaces members of the group with a provided list.
dataset/ETHPy150Open saltstack/salt/salt/modules/pw_group.py/members