cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:Assigning users to roles dynamically

sitara_kola
Participant
0 Kudos
57

Hi all,

i've different set of users for whom i can assign the roles based on their functionality. But the thing is that i can create them and add delta links in the portal. But i don't want to do this as manually .. and let me know in detail UME...

Can we assign roles to users based on some logic or conditions.If yes ...Please direct me how to do it..

Reply awaited....

Regards,

sitara

Edited by: sitara kola on Mar 8, 2008 2:47 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Your question is not very clear but what I understand is that you have users belonging to different groups and you are looking at dynamically assigning roles to each of the users.

For this you can create groups in the portal and assign roles to the group. While creating users, you will need to assign them to right group so that roles are automatically attached to users.

Regards

Prabhakar

sitara_kola
Participant
0 Kudos

HI prabhakar,

Thanks for your reply.

Usually we login as a admin id in portal and we do mappings of roles to a specific users.

Suppose i want to map two roles to a specific user (without going to portal), either by using CAF GP or WD or VC .Is it possible ? can anyone come across the same requirement?

If yes... can anyone help me solving this issue.

Regards,

sitara

Former Member
0 Kudos

Hi

You can use Security API of Portal Development Kit inside your Web dynpro application to carry out the required task.

[Blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1789] [original link is broken];

[Security API|https://help.sap.com/javadocs/NW04S/current/se/index.html]

You can use Interface IRoleFactory to assign user to role in your code.

Hope this helps.

Regards

Prabhakar

MichaelShea
Product and Topic Expert
Product and Topic Expert
0 Kudos

I do not know if this works for you but you can use virtual groups to automatically assign users to groups. Say you want to group users by department. Create virtual groups for the department attribute. Then assign the roles you want to assign to the marketing virtual group and the sales virtual group. When you create a new user and assign them to the marketing department, the user is automatically assigned to the marketing group as recieves the required roles.

See the documentation: http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcfa2942ed7067e10000000a1553f6/frameset.htm

-Michael

Answers (0)