Hi Mohammed
Just sharing an example.Hope it helps:
Step4:
Step5:
Step7:
Step8:
Step10:
You can change the current role of the logged in user with ‘Retrieve’ object ‘User’ by ‘CurrentUser’ and change its Userrole using activity ‘Change object’ adding to the association Userroles the role ‘Configurator’.
Mind you, the currentUser has to log out and log in again before the role will become active.