def getent(refresh=False):
    if 'group.getent' in __context__ and not refresh:
        return __context__['group.getent']

    ret = []
    for grinfo in grp.getgrall():
        ret.append(_format_info(grinfo))
    __context__['group.getent'] = ret
    return ret
Return info on all groups
dataset/ETHPy150Open saltstack/salt/salt/modules/groupadd.py/getent