Forums / Setup & design / Create role/Policy to manage members or users

Create role/Policy to manage members or users

Author Message

simon mcguire

Monday 07 March 2011 2:30:13 am

Hello,

I have been hired by a medium organisation to help manage a Ez-Publish website what is currently at version 4.4.0. I have searched this forum and tried the net but can't really find the solution.

What I would like to do is create a new Role called userManagement and attach a group of polices to it what will allow a user with the role to edit members and users in the CMS.

This will then allow me to delegate user management to multiple people without giving admin rights. the type of actions the user will need permission to do it. Enable user, change user password, edit user and delete user.

Would this be possible to implamentate

Regards

Damien Pobel

Monday 07 March 2011 3:13:07 am

Hi Simon,

this is perfectly possible just by configuring eZ Publish through the admin interface. You should go to the "User accounts" tab and then you should find a link (in the left column) "Roles and policies" you can create your own policies and assign them to a group of user. Those policies can define what the users are able to do.

You can read The-User-accounts-tab in the documentation to find details on that topic.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

simon mcguire

Monday 07 March 2011 3:39:59 am

Hi Damien,

Thanks for your speedy reply and the link to the resource. I can understand how to attach the policies now but I am finding the amount of policies and the policy names confusing. Nothing strikes me in the list of policies what controls the permission of allowing users edit other users.

Would you by any chance know what one it could be?

Thanks,

Simon

Damien Pobel

Monday 07 March 2011 4:08:50 am

"

I can understand how to attach the policies now but I am finding the amount of policies and the policy names confusing. Nothing strikes me in the list of policies what controls the permission of allowing users edit other users.

Would you by any chance know what one it could be?

"

When you add a policy to a role you can restrict it. Depending on the module / function, you have different type of available limitations. In your case, I think you should use content / edit and set a limitation on object of the class User.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

simon mcguire

Monday 07 March 2011 6:30:59 am

Hi Damien,

Thank you for your help. While learning I have managed to cobble a working solution. using the limitation was a big help.

cheers,

Simon