def list_permissions(vhost, runas=None):
 if ((runas is None) and (not salt.utils.is_windows())):
  runas = salt.utils.get_user()
 res = __salt__['cmd.run_all']([__context__['rabbitmqctl'], 'list_permissions', '-q', '-p', vhost], runas=runas, python_shell=False)
 return _output_to_dict(res)

def list_permissions ( vhost , runas = None ) : if ( ( runas is None ) and ( not salt . utils . is_windows ( ) ) ) : runas = salt . utils . get_user ( ) res = __salt__ [ 'cmd.run_all' ] ( [ __context__ [ 'rabbitmqctl' ] , 'list_permissions' , '-q' , '-p' , vhost ] , runas = runas , python_shell = False ) return _output_to_dict ( res )
lists permissions for vhost via rabbitmqctl list_permissions cli example: .