I am trying to write a script which check if the user has access to modify screens on a application. if not I want to update user role ( in my example from operator to administrator) . However , **system.security.getUserRoles(username, password, [authProfile], [timeout]) requires the password . Can you let me know if there is any function in vision I can use to change the user permission?
Ignition's access to AD is read only.
If you use AD Internal Hybrid you can use AD for authentication and set the roles in Ignition.
So every unauthorised user becomes an administrator? That isn't going to end well. I think you need to redefine your requirements.