Assign role in microflow

0
Hi, I have an enumeration where we select a role which should be applied to the user being made. I have created a microflow where I have set an exclusive split to check which enumeration has been selected. How do I assign a role to the user after a certain enumeration has been checked, so after the exclusive split?  What I have so far is: The user is made but can't login because the user doesn't get a role. 
asked
2 answers
2

Hi Silvano,

You can retrieve the system.userrole as follows;

per userrole in your project a token ( i.e.  '[%UserRole_Staff%]'  ) is available, containing the id of the UserRole object. 

answered
0

One way to do it, is to retrieve the system.userrole with the correct name from the database and set it in an associations between account and the userrole.

answered