Wiki source code of Step 6: Setting user rights

Last modified by Silvia Macovei on 2018/09/27

Hide last authors
Ecaterina Moraru (Valica) 33.1 1 {{info}}
2 Find out more about setting rights in XWiki [[on this page on XWiki.org.>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HAnoverviewofrights]]
3 {{/info}}
Guillaume Lerouge 1.1 4
Silvia Macovei 35.1 5 XWiki lets you set user rights at both the wiki and page level. This means that you can control exactly which users are allowed to perform which actions (edit, view or comment on a page).
Guillaume Lerouge 1.1 6
Silvia Macovei 35.1 7 To access the global rights Administration, go to ##Administration > Users & Rights > Rights##
Guillaume Lerouge 1.1 8
Guillaume Lerouge 3.1 9 Here are a couple usual wiki rights configurations. Check the same checkboxes in your wiki as in the images below to have your wiki follow that given configuration.
Guillaume Lerouge 1.1 10
Silvia Macovei 32.1 11 * **Registration: who should be allowed to create new user accounts?**
Guillaume Lerouge 17.1 12 ** Open: admins, registered users and unregistered users can create a new account
13 ** Closed: admins and registered users only can create a new account
14 ** Locked: admins only can create a new account
Silvia Macovei 32.1 15 * **View & edition: who should be allowed to view, comment and edit wiki pages?**
Guillaume Lerouge 17.1 16 ** Editable: admins, registered users and unregistered users can view, comment and edit pages
17 ** Viewable: admins and registered users can view, comment and edit content, unregistered users can only view and comment pages
18 ** Hidden: admins and registered users can view and edit content, unregistered users cannot view pages
19 ** Protected: admins only can view and edit content, registered and unregistered users cannot view pages
Silvia Macovei 35.1 20 * **Protection strength: can global rights be overridden at the page level?**
21 ** Light: global rights for unregistered users can be overridden at the page level
22 ** Strong: global rights for unregistered users cannot be overridden at the page level
Guillaume Lerouge 1.1 23
Guillaume Lerouge 5.1 24 For all the configurations listed below, leave the Users rights screen blank:
25
Silvia Macovei 48.1 26 {{image reference="Users.png" width="650px"/}}
Guillaume Lerouge 5.1 27
Silvia Macovei 32.2 28 = Editable / Open Wiki =
Guillaume Lerouge 1.1 29
Silvia Macovei 48.1 30 {{image reference="EditableOpen.png" width="650px"/}}
Guillaume Lerouge 5.1 31
Silvia Macovei 32.2 32 = Editable / Closed Wiki =
Guillaume Lerouge 1.1 33
Silvia Macovei 48.1 34 {{image reference="EditableClosed.png" width="650px"/}}
Guillaume Lerouge 5.1 35
Silvia Macovei 32.2 36 = Editable / Locked Wiki =
Guillaume Lerouge 17.1 37
Silvia Macovei 48.1 38 {{image reference="EditableLocked.png" width="650px"/}}
Guillaume Lerouge 17.1 39
Silvia Macovei 32.2 40 = Viewable / Open Wiki =
Guillaume Lerouge 1.1 41
Silvia Macovei 48.1 42 {{image reference="ViewableOpen.png" width="650px"/}}
Guillaume Lerouge 5.1 43
Silvia Macovei 32.2 44 = Viewable / Closed Wiki =
Guillaume Lerouge 1.1 45
Silvia Macovei 48.1 46 {{image reference="ViewableClosed.png" width="650px"/}}
Guillaume Lerouge 1.1 47
Silvia Macovei 32.2 48 = Viewable / Locked Wiki =
Guillaume Lerouge 17.1 49
Silvia Macovei 48.1 50 {{image reference="ViewableLocked.png" width="650px"/}}
Guillaume Lerouge 17.1 51
Silvia Macovei 32.2 52 = Hidden / Closed Wiki (Light) =
Guillaume Lerouge 5.1 53
Silvia Macovei 48.1 54 {{image reference="HiddenClosedLight.png" width="650px"/}}
Guillaume Lerouge 5.1 55
Silvia Macovei 32.2 56 = Hidden / Closed Wiki (Strong) =
Guillaume Lerouge 5.1 57
Silvia Macovei 48.1 58 {{image reference="HiddenClosedStrong.png" width="650px"/}}
Guillaume Lerouge 17.1 59
Silvia Macovei 32.2 60 = Hidden / Locked Wiki (Light) =
Guillaume Lerouge 17.1 61
Silvia Macovei 48.1 62 {{image reference="HiddenLockedLight.png" width="650px"/}}
Guillaume Lerouge 17.1 63
Silvia Macovei 32.2 64 = Hidden / Locked Wiki (Strong) =
Guillaume Lerouge 17.1 65
Silvia Macovei 48.1 66 {{image reference="HiddenLockedStrong.png" width="650px"/}}
Guillaume Lerouge 17.1 67
Silvia Macovei 32.2 68 = Protected / Locked Wiki =
Guillaume Lerouge 17.1 69
Silvia Macovei 48.1 70 {{image reference="ProtectedLocked.png" width="650px"/}}
Guillaume Lerouge 17.1 71
Silvia Macovei 34.1 72 {{success}}
73 **Next: [[Step 7 Creating a basic application>>CreatingABasicApp]]**
74 {{/success}}

Get Connected