Wiki source code of User Management

Version 44.5 by Sergiu Dumitriu on 2010/05/04

Hide last authors
Silvia Macovei 44.2 1 {{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
Silvia Macovei 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}}
Vincent Massol 1.20 6
Silvia Macovei 44.2 7 = Adding users to your wiki =
JanEldenmalm 1.1 8
Vincent Massol 34.2 9 1. Log in as an administrator.
Silvia Macovei 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.
EvelinaSlatineanu 2.1 14
Silvia Macovei 44.1 15 [[image:registeruser.jpg]]
EvelinaSlatineanu 4.1 16
Silvia Macovei 44.2 17 = Changing a user's password =
EvelinaSlatineanu 34.1 18
Silvia Macovei 44.2 19 == Changing the password for any user ==
Vincent Massol 35.1 20
21 1. Log in as an administrator.
Silvia Macovei 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.
Vincent Massol 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.
Silvia Macovei 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!
Vincent Massol 35.1 27
Vincent Massol 44.3 28 [[[[image:changepassword.jpg||style="border:1px solid black; padding:1px; display:block]]>>attach:changepassword.jpg]]
EvelinaSlatineanu 34.1 29
Silvia Macovei 44.2 30 == Changing the password for the logged in user ==
JanEldenmalm 1.23 31
Silvia Macovei 44.1 32 To change **your own password**:
33
Vincent Massol 35.1 34 1. Click on your user name in the top right corner of the screen. This will redirect you to your profile.
Silvia Macovei 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.
Vincent Massol 35.1 37
Vincent Massol 44.3 38 [[[[image:changepassword2.jpg||style="border:1px solid black; padding:1px; display:block]]>>attach:changepassword2.jpg]]
EvelinaSlatineanu 32.1 39
Silvia Macovei 44.2 40 = Editing an existing user =
JanEldenmalm 1.14 41
Vincent Massol 35.1 42 1. Log in as an administrator.
Silvia Macovei 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.
EvelinaSlatineanu 10.1 45 1. You have two options:
Vincent Massol 35.2 46 11. Click the user name for the user to edit.
Silvia Macovei 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.
Vincent Massol 35.1 50 11. Click on the pencil icon near the user you want to edit.
Silvia Macovei 44.1 51 111.
Vincent Massol 35.1 52 111*. This will open up a lightbox with the main information of that user, which you can edit in place.
Silvia Macovei 44.1 53 111*. After your modifications press ##**Save**## to be redirected to the **Users** view.
Vincent Massol 35.1 54 111*. There is also a link to the complete user profile, where you can proceed as above (first option).
JanEldenmalm 1.16 55
Silvia Macovei 44.1 56 [[image:edituser2.jpg]]
EvelinaSlatineanu 30.1 57
Silvia Macovei 44.2 58 = Deleting a user =
JanEldenmalm 1.25 59
Vincent Massol 35.2 60 1. Log in as an administrator.
Silvia Macovei 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.
JanEldenmalm 1.25 64
Silvia Macovei 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}}
Vincent Massol 35.2 68
Vincent Massol 44.3 69 [[[[image:edituser.jpg||style="border:1px solid black; padding:1px; display:block]]>>attach:edituser.jpg]]
EvelinaSlatineanu 31.1 70
Vincent Massol 41.1 71
Silvia Macovei 44.2 72 = Customizing the Registration page =
73
Silvia Macovei 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.
Vincent Massol 41.1 75
Silvia Macovei 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}}
Caleb James DeLisle 43.1 79
Silvia Macovei 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:
Silvia Macovei 44.1 81
82 {{code language="none"}}
Vincent Massol 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
Silvia Macovei 44.1 88 {{/code}}

Get Connected