A userrole is an entity like everything else. You can create a new entity UserroleGroup with a referenceset to UserRoles. When you assign a UserroleGroup to a user, it simply assigns all the Userroles in the group to the user (the existing User_Userrole association is a referenceset).
This is not working for me. I've created an object 'CustomUser' that inherits from 'Account'. Then I created an object 'UserroleGroup' that is connected to 'CustomUser' and 'Userrole', using a reference set.
I started the application in the browser, created a 'UserroleGroup' containing the UserRole 'User' and added this group to a 'Customuser'. After that, I logged out and logged in again with the 'Customuser' credentials. Then I get the following error: "The username or password you entered is incorrect.". It seems that this type of association is not working for userrights.
Do you know what is wrong?