cancel
Showing results for 
Search instead for 
Did you mean: 

Assign portal roles to a user

Former Member
0 Kudos

Hi,

I am able to assign UME roles to a user through the function addUserToRole.

But how can I assign portal roles (like PCD Tools, CRM Admin etc.) to a user.

Regards,

Avantika

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved.

former_member206159
Active Contributor
0 Kudos

Generally portal roles can be assigned using User Administrator -> Identity Management

Raghu

Former Member
0 Kudos

I want to assign the roles dynamically through code.

Former Member
0 Kudos

Wouldnt it be nicer if you simply assign Roles to Groups and then programatically using the UME API assign or remove the users from the groups. You will get plenty code on SDN for the same. Please SEARCH

Thanks,

GLM

Former Member
0 Kudos

Try IUserMaint.addToRole. As mentioned, searching in SDN will get you all sorts of examples!

Former Member
0 Kudos

Thanks all of you. I have been able to do that that through the function addUserToRole itself.