def _groupname():
    if grp:
        groupname = grp.getgrgid(os.getgid()).gr_name
    else:
        groupname = ''

    return groupname
Grain for the minion groupname
dataset/ETHPy150Open saltstack/salt/salt/grains/minion_process.py/_groupname