Wiki source code of Rights Management

Version 96.1 by Silvia Macovei on 2012/03/08

Hide last authors
Silvia Macovei 90.2 1 {{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
Silvia Macovei 88.1 2
3 {{info}}The images and documentation below feature the new Rights Management UI available since XWiki Enterprise 1.1.2 and XWiki Enterprise 1.2M2 and beyond.{{/info}}
Vincent Massol 62.1 4
Silvia Macovei 88.3 5 XWiki allows you to control all access permissions at a fine grained level. There are different levels of control and these rights are cumulative. The rights for a page override the rights for a space, which override the rights for a wiki.
Vincent Massol 1.20 6
Silvia Macovei 88.1 7 Thanks to the three levels of control offered by XWiki, it becomes quite easy to manage places where people are allowed to read, write and comment - or not allowed to go. **You can create groups of users in order to manage the rights of a category of people more easily.** For instance, say you have managers and staff in the marketing and IT department: you can create a group for the staff on each department and another for managers (4 in all), and a space for every category. Then you can choose to let marketing staff access the marketing space only, but let marketing managers have access to the IT space at the staff level (but not IT manager level), and so on...
Guillaume Lerouge 1.13 8
Silvia Macovei 88.1 9 {{warning}}You'll need to have the admin right granted in order to modify permissions for other users and groups.{{/warning}}
Vincent Massol 1.4 10
Silvia Macovei 90.2 11 = Rights at the wiki level =
Vincent Massol 1.1 12
Silvia Macovei 90.2 13 Click on your wiki "Administration" button. On the new skin it's located in the top right corner of the screen. Then click on the "Global Rights" icon as shown in the following image//:
Vincent Massol 1.1 14
Silvia Macovei 89.1 15 image:globalrights.PNG
Vincent Massol 1.4 16
17 Here's how you can change permissions:
EvelinaSlatineanu 6.1 18
EvelinaSlatineanu 20.1 19 * Select the Users or Groups for which you want to set a permission.
Silvia Macovei 88.3 20 ** There are some default users you need to know about:
21 *** Unregistered Users: represents the anonymous user (i.e., a user not logged in)
Vincent Massol 1.4 22 *** XWiki.XWikiAllGroup: represents all groups
23 *** XWiki.XWikiAdminGroup: represents all users with admin privileges
EvelinaSlatineanu 22.1 24 * Click once in a checkbox to allow a right, twice to deny it and three times to clear the right (delete the entry). As a result, rights entries are saved automatically, using the Ajax technology.
Vincent Massol 1.4 25
Silvia Macovei 90.2 26 = Rights at the space level =
Vincent Massol 1.1 27
Silvia Macovei 87.4 28 There are 2 solutions to edit rights at the space level :
Silvia Macovei 88.1 29
Silvia Macovei 87.4 30 1. When you are in the wiki administration, use the select to go to the administration of one of the existing spaces in your wiki.
Jean-Vincent Drean 87.1 31 1. Put your mouse over the "Administration" button at the top right corner of any page and click on "Administrate space : CurrentSpace".
Vincent Massol 1.1 32
Jean-Vincent Drean 87.1 33 Then click on the "Rights" icon. You will see the following screen :
34
Silvia Macovei 89.1 35 image:spacerights.PNG
vmassol 1.9 36
Silvia Macovei 87.4 37 Then use exactly the same steps as the ones used for changing global rights.
vmassol 1.9 38
Silvia Macovei 90.2 39 = Rights at the page level =
Vincent Massol 1.1 40
Vincent Massol 1.25 41 Simply navigate to the page for which you wish to change the permissions, Edit the page and then click on the Page Access Rights tab.
EvelinaSlatineanu 26.1 42
Silvia Macovei 89.1 43 image:pagerights.PNG
Vincent Massol 91.1 44
45 = Activating CAPTCHAs for anonymous comments =
46
47 {{info}}Supported since XWiki Enterprise 2.3{{/info}}
48
Vincent Massol 92.3 49 Go to the Rights admin page and tick the //Require unregistered users to solve a captcha when posting a comment on a page// check box as show on the following image~:
Vincent Massol 91.1 50
Vincent Massol 92.2 51 [[image:captchacomments.png||style="border: 1px solid #000;"]]
Vincent Massol 91.1 52
53 Note that you also need to give the Comment right to unregistered users. After you've done so unregistered users will see the following when entering a comment on a page:
54
Vincent Massol 92.2 55 [[image:anonymouscomment.png||style="border: 1px solid #000;"]]
Vincent Massol 91.1 56

Get Connected