30.05.2019, 20:55 
		
	
	
		Hi admin, thanks for replying. Both worked, but I will implement the option that the code has since the idea is that there is a user that is responsible for changing the password of several users without having to enter each user, besides that having the code could make the password is taken as an argument, by time schedules. I abjunto the code that worked for me.
	
	
	
	
Code:
require('json')
require('socket.http')
require('socket.url')
acl = {
  vis = {387,343,359,360},
  schedulers = {},
  trends = {},
}
data = {
  id = 3,
  name = 'jmv', -- full name
  login = 'jmv', -- login
  password = '654321', -- password
  password_repeat = '654321', -- must match password
  access_vis = 'P', -- full access to visualization
  access_schedulers = '', -- no access to schedulers
  access_trends = 'F', -- full access to trends
  acl = json.encode(acl)
}
post = 'data=' .. socket.url.escape(json.encode(data))
res, err = socket.http.request('http://admin:admin@127.0.0.1/scada-main/users/save', post)
log(res, err) 
 

