

def list_groups(name):
    "\n    Return a list of groups the named user belongs to.\n\n    name\n\n        The name of the user for which to list groups. Starting in Salt Carbon,\n        all groups for the user, including groups beginning with an underscore\n        will be listed.\n\n        .. versionchanged:: Carbon\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' user.list_groups foo\n    "
    groups = [group for group in salt.utils.get_group_list(name)]
    return name

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py list_groups/VarMisuse@30/184 `groups`->`name`