cancel
Showing results for 
Search instead for 
Did you mean: 

How to maintain single user has two roles at a time ?

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

nageswara

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

If the salesrep role is strictly for a different audience based on critical financial data, then why would you have a user with both admin and salesrep roles? Is this for an internal user or external?

Just trying to understand your scenario a bit better.

James

Former Member
0 Kudos

Thanks for your reply james.

This is for internal purpose only.

Please suggest me how can I handle this.

I am using parameters for declaring the roles .

Waiting for your reply.

Thanks

Nageswara.

Message was edited by: nageswar mandapati

Former Member
0 Kudos

If it is internal, should you not just create a super role to serve that purpose?

James