I just tried to create a excel sheet where a admin kann add new users to the system. Via a action button a process gets startet which adds the new user, psw and adds him to Groups.
To add the user works perfectly. But the Groups are not added automatically. But when I run the process a second time it works. here is the code of the process.
Proglog:
Code: Select all
AddClient(clientname);
AssignClientPassword(clientname, psw);
AssignClientToGroup(clientname, group1);
AssignClientToGroup(clientname, group2);
AssignClientToGroup(clientname, group3);
AssignClientToGroup(clientname, group4);
...
Code: Select all
AddClient(clientname);
AssignClientPassword(clientname, psw);
SecurityRefresh;
AssignClientToGroup(clientname, group1);
AssignClientToGroup(clientname, group2);
AssignClientToGroup(clientname, group3);
AssignClientToGroup(clientname, group4);
...
SecurityRefresh;
Any ideas?