As we need to test the authorisation roles of different users a lot, we created a function "Login as this user" that is placed on the employee detail form.
This spares us the detour via the login screen. Actually I got this idea from JIRA
When I showed the new function to the main admin of my customer, who also needs this a lot, she asked if it would be possible to launch a second instance of the application with that function.
That way she could stay inside her own instance with her user role and just quickly test another user role.
Is that somehow possible? Our current idea is to call the desktop button that starts the solution, but maybe it can be done even more elegant?
BTW, Gary coded that function with the help of application.setUserProperty(). That way we tell the solution with which user-id it should start on next automatic login.
And on login, we grab that information with application.getUserProperty().