@decorators.which('id')
def primary_group(name):
    return __salt__['cmd.run'](['id', '-g', '-n', name])
Return the primary group of the named user
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py/primary_group