Wiki source code of Rights Management

Version 109.1 by Guillaume Delhumeau on 2015/09/02

Hide last authors
Silvia Macovei 106.2 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
Silvia Macovei 88.1 4
Manuel Smeria 97.6 5 {{info}}
6 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.
7 {{/info}}
Vincent Massol 62.1 8
Silvia Macovei 88.3 9 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 10
Manuel Smeria 97.7 11 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.
Guillaume Lerouge 1.13 12
Manuel Smeria 97.7 13 {{info}}
14 You can create groups of users in order to manage the rights of a category of people more easily.
15 {{/info}}
16
17 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...
18
Manuel Smeria 97.6 19 {{warning}}
20 You'll need to have the admin right granted in order to modify permissions for other users and groups.
21 {{/warning}}
Vincent Massol 1.4 22
Silvia Macovei 90.2 23 = Rights at the wiki level =
Vincent Massol 1.1 24
Silvia Macovei 106.2 25 Click on the "Wiki" menu and then on "Administer Wiki". Click on the "Rights" link located under "Users & Groups" as shown in the following images//~://
Vincent Massol 1.1 26
Silvia Macovei 104.2 27 {{image reference="AdministerWikiMenu.png"/}}
28
29 {{image reference="AdministrationRights.png"/}}
30
Silvia Macovei 97.3 31 {{image reference="globalrights.PNG"/}}
Vincent Massol 1.4 32
33 Here's how you can change permissions:
EvelinaSlatineanu 6.1 34
EvelinaSlatineanu 20.1 35 * Select the Users or Groups for which you want to set a permission.
EvelinaSlatineanu 22.1 36 * 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 37
Manuel Smeria 97.5 38 There are some default users and groups you need to know about:
Silvia Macovei 106.2 39
Manuel Smeria 97.5 40 * Unregistered Users: represents the anonymous user (i.e., a user not logged in)
41 * XWikiAllGroup: represents all groups
42 * XWikiAdminGroup: represents all users with admin privileges
43
Silvia Macovei 90.2 44 = Rights at the space level =
Vincent Massol 1.1 45
Silvia Macovei 106.2 46 In order to edit rights at the space level you need to click on the "Space" menu (located on the top bar), click "Administer Space" and then click on the "Rights" link.
Silvia Macovei 88.1 47
Silvia Macovei 97.3 48 {{image reference="spacerights.PNG"/}}
vmassol 1.9 49
Silvia Macovei 87.4 50 Then use exactly the same steps as the ones used for changing global rights.
vmassol 1.9 51
Silvia Macovei 90.2 52 = Rights at the page level =
Vincent Massol 1.1 53
Silvia Macovei 106.2 54 {{warning}}
55 This is available only to [[//Advanced users//>>Features.PageEditing#HAdvancedMode]], make sure you switch your account to Advanced mode before trying to edit page rights.
56 {{/warning}}
Sergiu Dumitriu 98.1 57
Silvia Macovei 104.2 58 Simply navigate to the page for which you wish to change the permissions. Click on the arrow in the "Edit" menu and then on "Access Rights":
EvelinaSlatineanu 26.1 59
Silvia Macovei 97.3 60 {{image reference="pagerights.PNG"/}}
Vincent Massol 91.1 61
62 = Activating CAPTCHAs for anonymous comments =
63
Manuel Smeria 97.6 64 {{info}}
Silvia Macovei 104.2 65 Supported since XWiki Enterprise 2.3.
Manuel Smeria 97.6 66 {{/info}}
Vincent Massol 91.1 67
Silvia Macovei 106.2 68 Go to the "Rights" administration 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 69
Silvia Macovei 97.3 70 {{image reference="captchacomments.png"/}}
Vincent Massol 91.1 71
72 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:
73
Silvia Macovei 97.3 74 {{image reference="anonymouscomment.png"/}}

Get Connected