留言板

User roles

ganesh sahu,修改在11 年前。

User roles

New Member 帖子: 3 加入日期: 13-2-9 最近的帖子
hi , all we have a requirement from the client that a particular user should be able to switch roles in a particular session and that selected role will be the only role which will be used for various user actions. Case : Suppose a user having multiple roles poweruser, administrator ,content writer etc the page has certain tabs which will be visible to user with admin role . How can i restrict the user to use only one role that is admin without removing poweruser and content writer as i would need those roles later for the user to perform other actions. Any suggestions ??
thumbnail
jelmer kuperus,修改在11 年前。

RE: User roles

Liferay Legend 帖子: 1191 加入日期: 10-3-10 最近的帖子
Any suggestions ?


get new requirements :-) You will be in a world of pain if you try to go this route.

Also the admin role has all the permissions that poweruser / contentwriter etc have
thumbnail
David H Nebinger,修改在11 年前。

RE: User roles

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
I agree w/ Jelmer...

Basically roles are containers for privileges, and roles (privileges) are cumulative for a user.

We typically create custom roles and assign those roles to users. Then in the portlets, if users have the roles they will see the additional content/tabs/whatever. This way you can have a user which may have a CUSTOM_USER role that only sees the user content, perhaps a CUSTOM_POWER_USER role that gets visibility on some extra stuff, and a CUSTOM_ADMIN role that can see everything. You selectively grant your custom roles to users and they'll only see what their role(s) give them access to.

As a rule we try not to muck around with or use Liferay roles. These roles control what access a user may have to the portal, but they do not typically map to roles within the organization (i.e. we may give a manager a Power User role, but their specific manager-based roles give them access to manager functionality).
thumbnail
Hitoshi Ozawa,修改在11 年前。

RE: User roles

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Admin has all the privileges to conduct all tasks in the portal. If you want to separate them for auditing reasons, I think you mean that you want to impersonate users with only those roles.

Impersonate User: Opens another browser window which allows you to browse the site as though you were the user.


http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/using-the-control-pan-4
ganesh sahu,修改在11 年前。

RE: User roles

New Member 帖子: 3 加入日期: 13-2-9 最近的帖子
My Fault, I should have given a better example. Liferay roles will not be touched. This is a requirement only for custom roles.

Let me try the use case again: We are working on a Claims System. The system has multiple custom roles like coordinator, surveyor, claim processor, assessment analyst etc. A user of this system can have multiple roles (custom roles). The need is that for a session the user should be able to select a particular role as a primary role and the application should then show only what the primary role can see. The user should also be given a facility to change the primary role in the middle of that session and the application from then on should show what the new primary role can see.

Is this even possible with Liferay?