Login Failed user ** does not have any user roles

0
Hey, I'm new to Mendix. now Have I followed the course Become a Rapid Developer (Developer). Now I try to connect the trainee to an System user and this works I can make new trainee/ system.User. The problem only if I try to login with the user account I get the error: Login FAILED: user “**” does not have any user roles. What have I done wrong?    
asked
3 answers
1

Use generatization on Administration.Account, not System.User. You can copy & alter Admin pages & microflows to include your Trainee attributes.

answered
1

Hey Wim,

As Michal Mesároš suggested, it is recommended to use Administration.Account as the generalization of Trainee and to utilize the pages and microflows provided in the administration module; however, the issue you are facing is caused by the fact that you are trying to log in as a trainee that has no user role (as suggested by the error message). I would assume that you might have forgotten to add a Reference Set selector to the Trainee_NewEdit page in order to assign at least one user role to the Trainee you are trying to log in with. If you look at the System.User entity (that you are using as a generalization for Trainee you’ll find that it is associated to System.UserRole. Mendix uses that association to determine what permissions your Trainee (User) has.

answered
0

Thanks for the answers. Is there a manual for this I have search in the Academy but I can’t find it.

answered