User cant access; no userrole

0
Hi as a anonymous user you can make an company account. In the MF there I retrieve the userrole 'Company" and associate the account to this userrole and commit it. But when i try to login the console says that there is no userrole. If I check to other places where I do same/similar..it works fine..I always did this way....but here it goes wrong (I have enabled in security that the anonymous user can also handle company userroke) Do I miss something?
asked
2 answers
1

Did you debug your microflow to see if any role is retrieved and if the company account is committed after setting the role?

answered
1

Did you retrieve the userrole based on id or on name? I personally never use the name because it is error prone to capitalization and name changes? instead use the construction as found here

answered