Wiki source code of User Management
Version 81.1 by Simon Urli on 2019/10/14
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
52.3 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
2 | {{toc/}} | ||
3 | {{/box}} | ||
![]() |
44.1 | 4 | |
5 | {{info}} | ||
![]() |
70.1 | 6 | * These instructions assume you're using XWiki 1.2 or later with the **[[Albatross, Toucan or Colibri skins>>Documentation.AdminGuide.Skins]]** (screenshots for Colibri). |
![]() |
52.5 | 7 | * The default skin is currently Colibri. |
![]() |
44.1 | 8 | {{/info}} |
![]() |
50.3 | 9 | |
![]() |
44.2 | 10 | = Adding users to your wiki = |
![]() |
1.1 | 11 | |
![]() |
52.5 | 12 | 1. Log in as an administrator |
13 | 1. Hover over "Wiki" and click on "Administer Wiki" | ||
14 | 1. Click on the "Users" link to bring up an overview of all the users | ||
15 | 1. Click on the "Add new user" button to open a registration page as shown on the image below | ||
16 | 1. Fill in the user information | ||
![]() |
56.1 | 17 | 1. Click "Save":((( |
![]() |
52.4 | 18 | {{image reference="AddUser.png"/}} |
![]() |
52.5 | 19 | ))) |
![]() |
48.1 | 20 | |
![]() |
44.2 | 21 | = Changing a user's password = |
![]() |
34.1 | 22 | |
![]() |
44.2 | 23 | == Changing the password for any user == |
![]() |
35.1 | 24 | |
![]() |
52.5 | 25 | 1. Log in as an administrator |
26 | 1. Hover over "Wiki" and click on "Administer Wiki" | ||
27 | 1. Click on the "Users" link to bring up an overview of all the users | ||
28 | 1. Click on the name of the user for which you want to change the password (this will take you to the user's profile page) | ||
29 | 1. Click on the "Preferences" tab | ||
30 | 1. Click on the "Change Password" button | ||
31 | 1. Enter the new password twice | ||
![]() |
56.1 | 32 | 1. Click on the "Update" button((( |
![]() |
52.4 | 33 | {{image reference="ChangePassword.png"/}} |
![]() |
57.1 | 34 | |
![]() |
52.5 | 35 | {{warning}} |
36 | Don't forget to notify the user! | ||
37 | {{/warning}} | ||
38 | ))) | ||
![]() |
52.3 | 39 | |
![]() |
44.2 | 40 | == Changing the password for the logged in user == |
![]() |
1.23 | 41 | |
![]() |
52.5 | 42 | To change **your own password** follow these steps: |
![]() |
44.1 | 43 | |
![]() |
52.5 | 44 | 1. Click on your user name in the top right corner of the screen (this will redirect you to your profile) |
45 | 1. Click on the "Preferences" tab | ||
46 | 1. Click on the "Change password" button | ||
![]() |
60.1 | 47 | 1. Enter your current password (only needed since XWiki 5.1) and the new password twice |
48 | 1. Click on the "Save" button((( | ||
![]() |
58.1 | 49 | {{image reference="ChangeOwnPassword.png"/}} |
![]() |
52.5 | 50 | ))) |
![]() |
32.1 | 51 | |
![]() |
81.1 | 52 | == Changing the password security policy for the wiki == |
53 | |||
54 | Starting with {{info}}XWiki 11.9RC1{{/info}} it is now possibly to define the password security for all the users of the wiki. | ||
55 | The policy is defined by some rules available in the Administration > Users & Rights > Registration page. | ||
56 | You can specify the minimum length of the password, and if it must contain numbers, lower/upper case characters, and symbol. | ||
57 | |||
58 | {{image reference="password-policy-fields.png"/}} | ||
59 | |||
60 | Please note that when the rules are changed, all further password change must comply with the new rules, but the older password are still all valid. | ||
61 | |||
62 | |||
63 | |||
![]() |
44.2 | 64 | = Editing an existing user = |
![]() |
1.14 | 65 | |
![]() |
52.5 | 66 | 1. Log in as an administrator |
67 | 1. Hover over "Wiki" and click on "Administer Wiki" | ||
68 | 1. Click on the "Users" link to bring up an overview of all the users | ||
![]() |
10.1 | 69 | 1. You have two options: |
![]() |
52.5 | 70 | 11. Click the user name for the user you want to edit |
71 | 11*. On the user's profile page click on the small yellow pencil corresponding to the information you want to edit (profile or preferences) | ||
72 | 11*. Click "Save and View" to save the changes you have made | ||
73 | 11. Click on the small yellow pencil near the user you want to edit (this will open up a lightbox with the main information of that user) | ||
![]() |
56.1 | 74 | 11*. Make your modifications and click "Save"((( |
![]() |
52.5 | 75 | {{info}} |
76 | There is also a link to the complete user profile, where you can proceed as above (first option). | ||
77 | {{/info}} | ||
![]() |
57.1 | 78 | |
![]() |
74.1 | 79 | {{image reference="EditUserProfile.png" width="580px"/}} |
![]() |
52.5 | 80 | ))) |
![]() |
30.1 | 81 | |
![]() |
44.2 | 82 | = Deleting a user = |
![]() |
1.25 | 83 | |
![]() |
52.5 | 84 | 1. Log in as an administrator |
85 | 1. Hover over "Wiki" and click on "Administer Wiki" | ||
86 | 1. Click on the "Users" link to bring up an overview of all the users | ||
![]() |
56.1 | 87 | 1. Delete the user by clicking the red "X" corresponding to the user you want to delete (the user will be automatically removed from all the groups it belonged to)((( |
![]() |
44.1 | 88 | {{info}} |
![]() |
52.5 | 89 | You won't be able to delete the currently logged in user and you'll need to log-in using other credentials. This is don in order to prevent mistakes. |
![]() |
44.1 | 90 | {{/info}} |
![]() |
57.1 | 91 | |
![]() |
52.4 | 92 | {{image reference="DeleteUser.png"/}} |
![]() |
52.5 | 93 | ))) |
![]() |
31.1 | 94 | |
![]() |
51.1 | 95 | = Modify the number of users displayed in the list = |
![]() |
52.3 | 96 | |
![]() |
51.1 | 97 | This is valid as of v3.5 (I think it works on any 3.x version). |
98 | |||
![]() |
52.5 | 99 | You have to edit ##XWiki.AdminUsersSheet## for users. The page contains a line like this: |
![]() |
51.1 | 100 | |
101 | {{code}} | ||
102 | var ta = new XWiki.widgets.LiveTable("$url", "userstable", callback); | ||
103 | {{/code}} | ||
104 | |||
![]() |
52.5 | 105 | Replace it with: |
![]() |
51.1 | 106 | |
107 | {{code}} | ||
108 | var ta = new XWiki.widgets.LiveTable("$url", "userstable", callback, {limit: 100}); | ||
109 | {{/code}} | ||
110 | |||
111 | where 100 is the number of items displayed per page. | ||
112 | |||
![]() |
44.2 | 113 | = Customizing the Registration page = |
114 | |||
![]() |
44.1 | 115 | {{info}} |
![]() |
52.5 | 116 | Since [[XWiki Exterprise 2.2M2>>xwiki:ReleaseNotes.ReleaseNotesXWikiEnterprise22M2#HNewRegistrationpage]] customizing the registration page is done by the "Verified Registration" Page, part of the [[Administration Application>>extensions:Extension.Administration Application]]. This provides more features such as captcha and client side validation of user input. For more information about how to configure it, visit the [[application page>>extensions:Extension.Administration Application]]. |
![]() |
44.1 | 117 | {{/info}} |
![]() |
43.1 | 118 | |
![]() |
52.5 | 119 | In order to customize the registration page you must follow these steps: |
![]() |
44.1 | 120 | |
![]() |
52.5 | 121 | 1. Log in as an administrator |
![]() |
71.1 | 122 | 1. Click on the right drawer icon, then click on "Administer Wiki" |
123 | 1. Go to "Users & Rights" > "Registration" | ||
![]() |
56.1 | 124 | 1. Make your modifications and click "Save":((( |
![]() |
74.1 | 125 | {{image reference="Registration.png" width="960px"/}} |
![]() |
52.5 | 126 | ))) |
![]() |
56.1 | 127 | |
128 | {{error}} | ||
129 | Be sure to fill in admin's e-mail in Administration -> Configuration -> Email. Otherwise XWiki prior 4.5 won't send verification e-mails while E-mail verification is on. | ||
130 | {{/error}} | ||
![]() |
75.1 | 131 | |
![]() |
76.1 | 132 | = Enable/Disable User Account = |
133 | |||
134 | Starting with {{code}}XWiki 11.6RC1{{/code}} it is now possible to disable a user account and to enable it back from his/her profile. | ||
135 | A disabled user is able to login but cannot perform any action once logged-in. | ||
136 | |||
137 | {{gallery}} | ||
![]() |
80.1 | 138 | image:disable-account.png |
139 | image:enable-account.png | ||
140 | image:account-disabled-warning.png | ||
![]() |
76.1 | 141 | {{/gallery}} |
142 | |||
![]() |
75.1 | 143 | = Inactive Users = |
144 | |||
145 | If you configured the registration page to enable the **Use Email Verification**, then new registered users are by default inactive. The user account is activated by a link on the email. (See more information in [[Administration Application>>extensions:Extension.Administration Application]]). | ||
146 | |||
147 | Starting with {{code}}XWiki 11.6RC1{{/code}} the inactive users are prevented to get access to most pages of the wiki by default. The page they can get access to can be configured in the [[configuration>>Documentation.AdminGuide.Configuration||anchor="HAllowedPagesforInactiveUsers"]]. | ||
148 | |||
149 | Prior from that, the **Authentication Active Check** must be checked in order for inactive users to get access to the wiki. |