def set_user_tags(name, tags, runas=None):
 if ((runas is None) and (not salt.utils.is_windows())):
  runas = salt.utils.get_user()
 if (tags and isinstance(tags, (list, tuple))):
  tags = ' '.join(tags)
 res = __salt__['cmd.run_all']([__context__['rabbitmqctl'], 'set_user_tags', name, tags], runas=runas, python_shell=False)
 msg = 'Tag(s) set'
 return _format_response(res, msg)

def set_user_tags ( name , tags , runas = None ) : if ( ( runas is None ) and ( not salt . utils . is_windows ( ) ) ) : runas = salt . utils . get_user ( ) if ( tags and isinstance ( tags , ( list , tuple ) ) ) : tags = ' ' . join ( tags ) res = __salt__ [ 'cmd.run_all' ] ( [ __context__ [ 'rabbitmqctl' ] , 'set_user_tags' , name , tags ] , runas = runas , python_shell = False ) msg = 'Tag(s) set' return _format_response ( res , msg )
add user tags via rabbitmqctl set_user_tags cli example: .