cancel
Showing results for 
Search instead for 
Did you mean: 

User with two different roles

Former Member
0 Kudos

hi All,

I have an unique problem with my application, I have a user with two different roles "admin" and "salesrep".

I have declared the roles in the initialise() method of my portal application.

Now the problem is that when the user logs in who has both the roles applicable to him admin and salesrep, that is pointing to the admin role and there is a "Null Pointer Exception" coming for the salesrep role.

This is because the "salesrep" role has access to some information that the "admin" role does not have.

Please help me in this issue how to over come this problem.

Thanks and regards

kris

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

solved.

regards,

Kris

RoyF
Advisor
Advisor
0 Kudos

Hi Kris,

According to the Portal Permission mechanism , The user will have the permission according to the highest permission he got over an object / component.

e.g. if the user is assigned two roles and one role have read and the other role have Full Control permissions over a specific object, then the user will have full control over this object.

I think the problem you experience has some other source.

maybe you can describe the exception in details.

Best Regards

Roy

Former Member
0 Kudos

hi Roy,

Thanks for your response.

I have one user who is having two roles, when the user is logging with the first role then I am getting a exception "Null Pointer Exception" when trying to proceed further with that particular role.

Actually the second role is has some features which are not permitted to the first role, there the problem arises as I move ahead with the fisrt role.

thanks

kris

Former Member
0 Kudos

Hi Kris,

Is this problem is resolved.....?

These roles are newly created or some body done previously,now u added some properties now,am I correct...?

The problem might be users are created in group and assigned authorizations to entire group. now you are searching pirticular role and assign some authorizations or find any such kind of group do u have....

Or otherwise kindly expalin ur problem again these roles are coming from R/3 or u created in Portal end.

Thanks,

Lohi.