I need a functionality to create a simple account/user from an email. A scheduled event reads the emails and creates a user with the predefined userroles and a random password. Everything works fine in the microflows. The account/user is created and its status is 'Normal'. No errors no console logs. The last activity in the last microflow is complete normally. When logging in with MxAdmin the account/user is NOT visible and is not in the database. Any idea anyone?
Two obvious causes could be:
1) You do not actually commit the created object.
2) You commit the generalized object while looking for the specialized object. E.g. you look in the Administration.Account overview but in the microflow you create a System.User entity.
Two less obvious causes could be (but you would expect them to be cause an exception in the microflow):
1) Your random password does not follow the password policy of the project.
2) The user used to create new users is not allowed to create users with the specified user role.