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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 00:46:35
Script start
Timing: Jan 18 2025 00:46:35
Module start 'layout'
Timing: Jan 18 2025 00:46:35
Module start 'content'
Timing: Jan 18 2025 00:46:36
Module end 'content'
Timing: Jan 18 2025 00:46:36
Script end

Main resources:

Total runtime0.9905 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.1719152.6406
Module start 'layout' 0.00600.0037 741.812539.4844
Module start 'content' 0.00970.9790 781.2969559.6250
Module end 'content' 0.98880.0017 1,340.921916.1250
Script end 0.9904  1,357.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3294160.0002
Check MTime0.00130.1362160.0001
Mysql Total
Database connection0.00120.119810.0012
Mysqli_queries0.928793.7638640.0145
Looping result0.00060.0633620.0000
Template Total0.954696.420.4773
Template load0.00250.254920.0013
Template processing0.952196.123320.4760
Template load and register function0.00030.029910.0003
states
state_id_array0.00110.111810.0011
state_identifier_array0.00100.103620.0005
Override
Cache load0.00200.2064340.0001
Sytem overhead
Fetch class attribute can translate value0.00050.049720.0002
Fetch class attribute name0.00150.154360.0003
XML
Image XML parsing0.00070.072720.0004
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00150.1550160.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs