Categories
Knowledge Support exacqVision Enterprise Support

exacqVision Enterprise Manager Error When Saving Custom User Role

When attempting to make changes to an existing user role a warning banner pops up “Error while saving user role. Please try again.”

To resolve copy the script “fix_userroles.py” to the EnterpriseSystemManager install folder.

Windows
C:\Program Files\exacqVision\EnterpriseManager\EnterpriseSystemManager

Linux
/usr/local/exacq/esm/

Navigate to EnterpriseManager directory and Launch the Interactive shell

Windows

cd "C:\Program Files\exacqVision\EnterpriseManager\EnterpriseSystemManager"
enterprisesystemmanager.exe shell
Python 3.7.3 (default, Aug 19 2019, 13:50:07)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>>

Linux

cd \usr\loca\exacq\esm
sudo ./enterprisesystemmanager shell
Python 3.7.3 (default, Aug 19 2019, 13:50:07)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>>

Run the Script

>>> from fix_userroles import start
>>> start()
Dry run? (y/n): n
Enterprise Manager URL? (http://127.0.0.1): http://localhost:8100
Username: admin
Password:

You should begin to see results returning as the script runs.  When complete you will be returned to the shell prompt “>>>”.

Type sys.exit() or press Ctrl+Z to close the shell

Check EM to ensure proper operation.

Note: This issue should be resolved in exacqVision Enterprise Manager v21.06. See #22593 for additional information.