code: def list_permissions(vhost, runas=None):
      '''
      Lists permissions for vhost via rabbitmqctl list_permissions
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rabbitmq.list_permissions /myvhost
      '''
      if runas is None and not salt.utils.platform.is_windows():
          runas = salt.utils.user.get_user()
      res = __salt__['cmd.run_all'](
          [RABBITMQCTL, 'list_permissions', '-q', '-p', vhost],
          reset_system_locale=False,
          runas=runas,
          python_shell=False)
  
      return _output_to_dict(resf list_permissions(vhost, runas=None):
      '''
      Lists permissions for vhost via rabbitmqctl list_permissions
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rabbitmq.list_permissions /myvhost
      '''
      if runas is None and not salt.utils.platform.is_windows():
          runas = salt.utils.user.get_user()
      res = __salt__['cmd.run_all'](
          [RABBITMQCTL, 'list_permissions', '-q', '-p', vhost],
          reset_system_locale=False,
          runas=runas,
          python_shell=False)
  
      return _output_to_dict(res)
docs: Lists permissions for vhost via rabbitmqctl list_permissions
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rabbitmq.list_permissions /myvhost