Wiki source code of User Management

Version 95.2 by Lucas Charpentier (Sereza7) on 2024/11/07

Hide last authors
Silvia Macovei 52.3 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
Silvia Macovei 44.1 4
Silvia Macovei 44.2 5 = Adding users to your wiki =
JanEldenmalm 1.1 6
Manuel Smeria 52.5 7 1. Log in as an administrator
8 1. Hover over "Wiki" and click on "Administer Wiki"
9 1. Click on the "Users" link to bring up an overview of all the users
10 1. Click on the "Add new user" button to open a registration page as shown on the image below
11 1. Fill in the user information
Dmitry Bakbardin 56.1 12 1. Click "Save":(((
Silvia Macovei 52.4 13 {{image reference="AddUser.png"/}}
Manuel Smeria 52.5 14 )))
DavidSowerby 48.1 15
Silvia Macovei 44.2 16 = Changing a user's password =
EvelinaSlatineanu 34.1 17
Silvia Macovei 44.2 18 == Changing the password for any user ==
Vincent Massol 35.1 19
Manuel Smeria 52.5 20 1. Log in as an administrator
21 1. Hover over "Wiki" and click on "Administer Wiki"
22 1. Click on the "Users" link to bring up an overview of all the users
23 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)
24 1. Click on the "Preferences" tab
25 1. Click on the "Change Password" button
26 1. Enter the new password twice
Dmitry Bakbardin 56.1 27 1. Click on the "Update" button(((
Silvia Macovei 52.4 28 {{image reference="ChangePassword.png"/}}
Vincent Massol 57.1 29
Manuel Smeria 52.5 30 {{warning}}
31 Don't forget to notify the user!
32 {{/warning}}
33 )))
Silvia Macovei 52.3 34
Silvia Macovei 44.2 35 == Changing the password for the logged in user ==
JanEldenmalm 1.23 36
Vincent Massol 92.2 37 To change your own password follow these steps:
Silvia Macovei 44.1 38
Manuel Smeria 52.5 39 1. Click on your user name in the top right corner of the screen (this will redirect you to your profile)
40 1. Click on the "Preferences" tab
41 1. Click on the "Change password" button
Thomas Delafosse 60.1 42 1. Enter your current password (only needed since XWiki 5.1) and the new password twice
43 1. Click on the "Save" button(((
Thomas Delafosse 58.1 44 {{image reference="ChangeOwnPassword.png"/}}
Manuel Smeria 52.5 45 )))
EvelinaSlatineanu 32.1 46
Simon Urli 83.1 47 == Changing the password security policy ==
Simon Urli 81.1 48
Vincent Massol 92.2 49 You can define the password security for all the users of the wiki. The policy is defined by some rules available in the Administration > Users & Rights > Registration page. You can specify the minimum length of the password, and if it must contain numbers, lower/upper case characters, and symbol.
Simon Urli 81.1 50
51 {{image reference="password-policy-fields.png"/}}
52
Vincent Massol 83.2 53 Please note that when the rules are changed, all further password changes must comply with the new rules, but the older password are still all valid.
Simon Urli 81.1 54
Silvia Macovei 44.2 55 = Editing an existing user =
JanEldenmalm 1.14 56
Manuel Smeria 52.5 57 1. Log in as an administrator
58 1. Hover over "Wiki" and click on "Administer Wiki"
59 1. Click on the "Users" link to bring up an overview of all the users
Manuel Leduc 90.1 60 1. You have two options:
Manuel Smeria 52.5 61 11. Click the user name for the user you want to edit
62 11*. On the user's profile page click on the small yellow pencil corresponding to the information you want to edit (profile or preferences)
63 11*. Click "Save and View" to save the changes you have made
64 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)
Dmitry Bakbardin 56.1 65 11*. Make your modifications and click "Save"(((
Manuel Smeria 52.5 66 {{info}}
67 There is also a link to the complete user profile, where you can proceed as above (first option).
68 {{/info}}
Vincent Massol 57.1 69
Silvia Macovei 74.1 70 {{image reference="EditUserProfile.png" width="580px"/}}
Manuel Smeria 52.5 71 )))
EvelinaSlatineanu 30.1 72
Manuel Leduc 86.1 73 = Disabling a user =
74
Manuel Leduc 90.1 75 == From the administration ==
Manuel Leduc 86.1 76
Lucas Charpentier (Sereza7) 95.2 77 [[image:user_administration_disable_account.png||height="271"]]
Manuel Leduc 86.1 78
79 1. Log in as an administrator
Manuel Leduc 90.1 80 1. Go to the User section of the Wiki administration
81 1. Click on the closed lock to disable a user
Manuel Leduc 86.1 82
83 To enable a user, follow the same steps but click on the opened lock.
84
85 == From a user profile ==
86
Manuel Leduc 90.1 87 [[image:user_profile_enabled_account.png||height="415" width="960"]]
Manuel Leduc 86.1 88
89 1. Login an an administrator
Manuel Leduc 90.1 90 1. Visit a user profile
91 1. Click on the "Disable this account" action.
Manuel Leduc 86.1 92
Manuel Leduc 90.1 93 [[image:user_profile_disabled_account.png||height="387" width="960"]]
Manuel Leduc 86.1 94
95 To enable a user, follow the same step but click on the "Enable this account" action.
96
Silvia Macovei 44.2 97 = Deleting a user =
JanEldenmalm 1.25 98
Manuel Smeria 52.5 99 1. Log in as an administrator
Manuel Leduc 86.1 100 1. Go to the User section of the Wiki administration
Dmitry Bakbardin 56.1 101 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)(((
Silvia Macovei 44.1 102 {{info}}
Manuel Leduc 90.1 103 You won't be able to delete the currently logged in user and you'll need to log-in using other credentials. This is done in order to prevent mistakes.
Silvia Macovei 44.1 104 {{/info}}
Vincent Massol 57.1 105
Manuel Leduc 90.1 106 [[image:user_administration_disable_account.png||height="271" width="960"]]
Manuel Smeria 52.5 107 )))
EvelinaSlatineanu 31.1 108
AdrianFita 51.1 109 = Modify the number of users displayed in the list =
Silvia Macovei 52.3 110
Vincent Massol 92.2 111 Edit the ##XWiki.AdminUsersSheet## page. It contains a line like this:
AdrianFita 51.1 112
113 {{code}}
114 var ta = new XWiki.widgets.LiveTable("$url", "userstable", callback);
115 {{/code}}
116
Manuel Smeria 52.5 117 Replace it with:
AdrianFita 51.1 118
119 {{code}}
120 var ta = new XWiki.widgets.LiveTable("$url", "userstable", callback, {limit: 100});
121 {{/code}}
122
Vincent Massol 92.2 123 where ##100## is the number of items displayed per page.
AdrianFita 51.1 124
Silvia Macovei 44.2 125 = Customizing the Registration page =
126
Vincent Massol 92.2 127 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]].
Caleb James DeLisle 43.1 128
Manuel Smeria 52.5 129 In order to customize the registration page you must follow these steps:
Silvia Macovei 44.1 130
Manuel Smeria 52.5 131 1. Log in as an administrator
Silvia Macovei 71.1 132 1. Click on the right drawer icon, then click on "Administer Wiki"
133 1. Go to "Users & Rights" > "Registration"
Dmitry Bakbardin 56.1 134 1. Make your modifications and click "Save":(((
Silvia Macovei 74.1 135 {{image reference="Registration.png" width="960px"/}}
Manuel Smeria 52.5 136 )))
Dmitry Bakbardin 56.1 137
Simon Urli 76.1 138 = Enable/Disable User Account =
139
Vincent Massol 92.2 140 It is possible to disable a user account and to enable it back from his/her profile. A disabled user is able to login but cannot perform any action once logged-in.
Simon Urli 76.1 141
142 {{gallery}}
Simon Urli 80.1 143 image:disable-account.png
144 image:enable-account.png
145 image:account-disabled-warning.png
Simon Urli 76.1 146 {{/gallery}}
147
Simon Urli 75.1 148 = Inactive Users =
149
150 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]]).
151
Vincent Massol 92.2 152 Inactive users are prevented to get access to most pages of the wiki by default. The pages they can get access to can be configured in the [[configuration>>Documentation.AdminGuide.Configuration#HAllowedPagesforInactiveUsers]]. Prior to that, the ##Authentication Active Check## must be enabled in order for inactive users to get access to the wiki.
Vincent Massol 93.1 153
154 = User Storage =
155
156 Users are stored inside wiki pages containing an XObject of the ##XWiki.XWikiUsers## XClass. To see all the user metadata, you can navigate to the profile page of a user and edit it using the Object editor.
157

Get Connected