Forums / General / Need documentation on Roles and Policies set up !

Need documentation on Roles and Policies set up !

Author Message

Lex 007

Tuesday 10 May 2005 8:34:43 am

Hello

I can't find documentation on ez.no about the Roles and Policies management ... could someone lead me to the right page ?

Thx

/Lex

Marat M.

Tuesday 10 May 2005 8:54:19 am

Yeah, that's a very important question. I also lack information of how users and policies are handled in the system. The same is with templates. For instance, how to get to know quickly what template is used for a particular node(object)?

Lex 007

Tuesday 10 May 2005 9:00:34 am

Actually I would need docs on how to set up the Roles and Policies in the admin interface, because people are usually completely lost with the concepts of the roles / sections / user groups.

Marat M.

Tuesday 10 May 2005 9:23:42 am

I think that many people here know about roles and policies enough. However, this information is not concentrated anywhere but diffused throughout the forum posts. So, we need to make a clear list of questions. Here is mine:

1. What is the exact definition of the following terms: user, role, policy, user_group in the context of eZpublish CMS?

2. How do the roles/policies affect the access to the content objects?

3. What is the proper sequence of steps needed to grant access to the, say, anonimous user to the specified content folder?

4. What is the difference between adding new policy to the role and assigning the role to the user or user group?

I guess there may be other questions but these are the main.

Thanks,
Marat

Marat M.

Tuesday 10 May 2005 9:34:30 am

I found a "Permissions" tutorial on ezcommunity.net. Look here

<i>
http://ezcommunity.net/article/view/86/1/30/
</i>

kracker (the)

Tuesday 10 May 2005 10:08:25 am

Marat,

I'm sorry that ezcommunity.net is for eZ publish 2 NOT eZ publish3. It will not help you in your search.

Sorry,
//kracker

Dr. Katz : Walk for Hunger

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Lex 007

Wednesday 11 May 2005 12:10:04 am

OK, so let's write some doc on this :-D

First some definitions :

User : A user accounts represents a person who is involved in the web site.

Group : A user can be member of a set of groups with different security profiles which aids administrators in the definition, assignment, and maintenance of security policies for a user or a group of users.

Roles and Policies : User permissions and access control on content objects are based on roles. Roles apply a set of policies to a set of users and/or user groups. A policy depending on the module, can dictate access to module level and sometimes function level. Each policy can apply to a particular Subtree, Node, or a Section; or a combination there-of. (this sentence is from ez.no )

Marat M.

Wednesday 11 May 2005 2:50:20 am

2 kracker

Yes, that's right. I've just noticed that.

Marat M.

Wednesday 11 May 2005 3:57:07 am

2 Lex 007

Now, let me summarize all the said:

The central terms are a <b>user group</b> and a <b>role</b>. Each one organized in the form of tree. Here is a "scetch":


+ User group
  |
  |- User1 
  |- User2 
  |- User3

And here is how the roles look like:

+ Role
  |
  |- Policy1
  |- Policy2
  |- Policy3

Example:


+ Tough guys [User group]
  |
  |- Marat M.[a separate user]
  |- Lex 007 [a separate user]
  |- Kracker [a separate user]

+ Anonymous [Role]
  |
  |- Content-Read-Section [a separate policy]
  |- Content-PDF-Section  [a separate policy] 
  |- RSS-Feed-No_limitations  [a separate policy]

Let's go further. As it may be seen in the admin, we can <b>assign with limitation</b> to a user, or to a user group.

<b>Assign with limitaion</b> means WHERE (the section or subtree node) the user or group will do something, whereas the particular <b>policies</b> set for the role (a user or usergroup belongs to) define WHAT a user or group can do in that section or node.

The difference between sections and subtree nodes (where the contect objects reside) can be found in the Documentation/Basics.

Do correct me if I'm mistaken . Waiting for comments.

-Marat

Lex 007

Wednesday 11 May 2005 5:05:25 am

That's a great job. Now the next step is to define the policies hanling (with modules, functions, sections, classes ...).

Marat M.

Wednesday 11 May 2005 7:19:46 am

I will. Hope meanwhile someone from the eZ staff and forum members will contribute to my post and - what is more likely - will correct my writings.

Thanks 2 all,
-Marat

P.S. Our main purpose is to create a document for BEGINNERS, that have absolutely no knowledge of eZpublish and very little - of PHP.

kracker (the)

Wednesday 11 May 2005 7:33:52 am

now, you got the idea ...
now, run with it and never stop ..
now, never let anything stop you ..

//kracker
eminem : who knew?

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

eZ debug

Timing: Jan 19 2025 12:46:04
Script start
Timing: Jan 19 2025 12:46:04
Module start 'content'
Timing: Jan 19 2025 12:46:04
Module end 'content'
Timing: Jan 19 2025 12:46:05
Script end

Main resources:

Total runtime0.1394 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0781180.8203
Module start 'content' 0.00630.0053 769.8984110.0234
Module end 'content' 0.01160.1276 879.9219537.8750
Script end 0.1393  1,417.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00322.2953200.0002
Check MTime0.00130.9338200.0001
Mysql Total
Database connection0.00070.494310.0007
Mysqli_queries0.098670.71921410.0007
Looping result0.00120.84501390.0000
Template Total0.127391.310.1273
Template load0.00080.542510.0008
Template processing0.126590.789610.1265
Override
Cache load0.00050.381710.0005
Sytem overhead
Fetch class attribute can translate value0.00050.391810.0005
XML
Image XML parsing0.00020.146310.0002
General
dbfile0.00362.5509200.0002
String conversion0.00000.005130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs