Wiki source code of User Management
Version 44.5 by Sergiu Dumitriu on 2010/05/04
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
44.2 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}} |
![]() |
44.1 | 2 | |
3 | {{info}} | ||
4 | These instructions assume you're using XWiki 1.2 or later with **[[Albatross or Toucan skin>>AdminGuide.Skins]]** (screenshots for Toucan). | ||
5 | {{/info}} | ||
![]() |
1.20 | 6 | |
![]() |
44.2 | 7 | = Adding users to your wiki = |
![]() |
1.1 | 8 | |
![]() |
34.2 | 9 | 1. Log in as an administrator. |
![]() |
44.1 | 10 | 1. Click on the **##Administration##** link in the top right corner of the screen to go to the main Administration page. |
11 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
12 | 1. Click on **##Add new user##** button to open a registration page as shown on the image below. | ||
13 | 1. Complete the user information and press the **##Save##** button. | ||
![]() |
2.1 | 14 | |
![]() |
44.1 | 15 | [[image:registeruser.jpg]] |
![]() |
4.1 | 16 | |
![]() |
44.2 | 17 | = Changing a user's password = |
![]() |
34.1 | 18 | |
![]() |
44.2 | 19 | == Changing the password for any user == |
![]() |
35.1 | 20 | |
21 | 1. Log in as an administrator. | ||
![]() |
44.1 | 22 | 1. Click on the **##Administration##** link in the top right corner of the screen to go to the main Administration page. |
23 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
![]() |
35.1 | 24 | 1. Click on the name for the user for which to change the password. This lead you to the user's page. |
![]() |
44.1 | 25 | 1. To the URL of the page add the following extension: **##?xpage=passwd##**. |
26 | 1. Modify the password and click the **##Update##** button to save your change. Don't forget to tell the user! | ||
![]() |
35.1 | 27 | |
![]() |
44.3 | 28 | [[[[image:changepassword.jpg||style="border:1px solid black; padding:1px; display:block]]>>attach:changepassword.jpg]] |
![]() |
34.1 | 29 | |
![]() |
44.2 | 30 | == Changing the password for the logged in user == |
![]() |
1.23 | 31 | |
![]() |
44.1 | 32 | To change **your own password**: |
33 | |||
![]() |
35.1 | 34 | 1. Click on your user name in the top right corner of the screen. This will redirect you to your profile. |
![]() |
44.1 | 35 | 1. Click on the **##Change password##** link in the menu |
36 | 1. Modify the password and click the **##Update##** button to save your change. | ||
![]() |
35.1 | 37 | |
![]() |
44.3 | 38 | [[[[image:changepassword2.jpg||style="border:1px solid black; padding:1px; display:block]]>>attach:changepassword2.jpg]] |
![]() |
32.1 | 39 | |
![]() |
44.2 | 40 | = Editing an existing user = |
![]() |
1.14 | 41 | |
![]() |
35.1 | 42 | 1. Log in as an administrator. |
![]() |
44.1 | 43 | 1. Click on the **##Administration##** link in the top right corner of the screen to go to the main Administration page. |
44 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
![]() |
10.1 | 45 | 1. You have two options: |
![]() |
35.2 | 46 | 11. Click the user name for the user to edit. |
![]() |
44.1 | 47 | 111. |
48 | 111*. On the user's page click **##on the button corresponding to the information you want to edit (info, password, etc)##**. This will open a page editing view containing the attributes than can be changed. | ||
49 | 111*. Click "**##Save and View##**" - to save the changes you have made. | ||
![]() |
35.1 | 50 | 11. Click on the pencil icon near the user you want to edit. |
![]() |
44.1 | 51 | 111. |
![]() |
35.1 | 52 | 111*. This will open up a lightbox with the main information of that user, which you can edit in place. |
![]() |
44.1 | 53 | 111*. After your modifications press ##**Save**## to be redirected to the **Users** view. |
![]() |
35.1 | 54 | 111*. There is also a link to the complete user profile, where you can proceed as above (first option). |
![]() |
1.16 | 55 | |
![]() |
44.1 | 56 | [[image:edituser2.jpg]] |
![]() |
30.1 | 57 | |
![]() |
44.2 | 58 | = Deleting a user = |
![]() |
1.25 | 59 | |
![]() |
35.2 | 60 | 1. Log in as an administrator. |
![]() |
44.1 | 61 | 1. Click on the **##Administration##** link in the top right corner of the screen to go to the main Administration page. |
62 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
63 | 1. Delete the user by using the **##X##** button for the user to delete. The user will automatically be removed from all the groups it belonged to. | ||
![]() |
1.25 | 64 | |
![]() |
44.1 | 65 | {{info}} |
66 | You won't be able to delete the currently logged in user and you'll need to log using other credentials. This is to prevent mistakes... | ||
67 | {{/info}} | ||
![]() |
35.2 | 68 | |
![]() |
44.3 | 69 | [[[[image:edituser.jpg||style="border:1px solid black; padding:1px; display:block]]>>attach:edituser.jpg]] |
![]() |
31.1 | 70 | |
![]() |
41.1 | 71 | |
![]() |
44.2 | 72 | = Customizing the Registration page = |
73 | |||
![]() |
44.1 | 74 | You can also customize the way users are registered in your XWiki by creating a ##XWiki.Registration## page which will override the default registration page. |
![]() |
41.1 | 75 | |
![]() |
44.1 | 76 | {{info}} |
77 | Since 2.2M2 this is done by the Verified Registration Page, part of the [[Administration Application>>code:Applications.AdministrationApplication]]. 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. | ||
78 | {{/info}} | ||
![]() |
43.1 | 79 | |
![]() |
44.2 | 80 | If you don't know what to put in the page you can start by copying the content of ##http://yourserver/xwiki/templates/registerinline.vm ## and paste it in your ##XWiki.Registration## page. You'll have to be careful to remove the first test in the template or your registration page will loop forever: |
![]() |
44.1 | 81 | |
82 | {{code language="none"}} | ||
![]() |
41.1 | 83 | #if(!$xwiki.hasAccessLevel("view","XWiki.Registration")||$xwiki.getDocument("XWiki.Registration").isNew()) |
84 | [...] ## here is the code you want to keep | ||
85 | #else | ||
86 | $xwiki.getDocument("XWiki.Registration").getTranslatedDocument().getRenderedContent() | ||
87 | #end | ||
![]() |
44.1 | 88 | {{/code}} |