def user_add(username, password, permissions, type)
      payload = {
        :username => username, 
        :password => password, 
        :permissions => permissions, 
        :type => type, 
        :json => 1
      }
      http_post(:uri=>"/users", :fields=>x_cookie, :data=>payload)
    end
def user_add(username, password, permissions, type)
      payload = {
        :username => username, 
        :password => password, 
        :permissions => permissions, 
        :type => type, 
        :json => 1
      }
      http_post(:uri=>"/users", :fields=>x_cookie, :data=>payload)
    end
Add user to server

 returns: JSON parsed object

 Usage:

  n=NessusREST::Client.new (:url=>'https://localhost:8834', :username=>'user', :password=> 'password')
  pp n.user_add('user','password','16','local')

 Reference:
 https://localhost:8834/api#/resources/users/create