I have a challenge with usermanagement in my application.
The eSapce is a kind of projcetmanagement tool. In the eSpace multiple projects can be defined.
When a user logs on to the application he/she can select one of the projcets he/she is somehow involved with (eg. hase a role in).
The problem is, the role of the logedin User is not in every project the same. On one project the user can be administrator and in an other project contributer or viewer.
How can I achieve that a user, depending on the chosen project, has the correct role (eg. permissions).
What I did upto now is.
- I created template roles.
- When I new project is created, I create new roles(eSpacename + ProjcetId .<templateRoleName>), copy from the template.
- Associate the template role permissions to the newly created role, copy from the template.
- Put the user who creates the project in the ProjectAdmin role of that project.
Now the ProjectAdmin can put users in the project roles.
PS. I use EnterpiseManager as userprovider.
Thanks in advance,