Wiki source code of User Management

Version 48.1 by DavidSowerby on 2011/02/11

Hide last authors
Silvia Macovei 44.2 1 {{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
Silvia Macovei 44.1 2
3 {{info}}
Sorin Burjan 46.1 4 These instructions assume you're using XWiki 1.2 or later with **[[Albatross, Toucan or Colibri skins>>AdminGuide.Skins]]** (screenshots for Colibri).
Silvia Macovei 44.1 5 {{/info}}
DavidSowerby 48.1 6 {{info}}
7 Note: The default skin skin is Colibri
8 {{/info}}
Vincent Massol 1.20 9
Silvia Macovei 44.2 10 = Adding users to your wiki =
JanEldenmalm 1.1 11
Vincent Massol 34.2 12 1. Log in as an administrator.
DavidSowerby 48.1 13 1. Go to the [[administration]] page. (Colibri: Select **##Wiki/Administer Wiki##** from top left of screen) (Toucan: Select **##Administration##** link in the top right corner of the screen)
Silvia Macovei 44.1 14 1. Click on the **##Users##** icon to bring up an overview of all users.
15 1. Click on **##Add new user##** button to open a registration page as shown on the image below.
16 1. Complete the user information and press the **##Save##** button.
EvelinaSlatineanu 2.1 17
DavidSowerby 48.1 18
Sorin Burjan 46.1 19 [[image:AddUser.png||style="border:1px solid black;]]
Silvia Macovei 44.2 20 = Changing a user's password =
EvelinaSlatineanu 34.1 21
Silvia Macovei 44.2 22 == Changing the password for any user ==
Vincent Massol 35.1 23
24 1. Log in as an administrator.
DavidSowerby 48.1 25 1. Go to the administration page. (Colibri: Select **##Wiki/Administer Wiki##** from top left of screen) (Toucan: Select **##Administration##** link in the top right corner of the screen)
Silvia Macovei 44.1 26 1. Click on the **##Users##** icon to bring up an overview of all users.
Vincent Massol 35.1 27 1. Click on the name for the user for which to change the password. This lead you to the user's page.
Sorin Burjan 46.1 28 1. Go to my Preferences tab and click Change Password button.
Silvia Macovei 44.1 29 1. Modify the password and click the **##Update##** button to save your change. Don't forget to tell the user!
Vincent Massol 35.1 30
Sorin Burjan 46.1 31 [[image:ChangePassword.png||style="border:1px solid black;]]
Silvia Macovei 44.2 32 == Changing the password for the logged in user ==
JanEldenmalm 1.23 33
Silvia Macovei 44.1 34 To change **your own password**:
35
Vincent Massol 35.1 36 1. Click on your user name in the top right corner of the screen. This will redirect you to your profile.
Sorin Burjan 46.1 37 1. Click on the Preferences tab and the click on **##Change password##** button.
Silvia Macovei 44.1 38 1. Modify the password and click the **##Update##** button to save your change.
Vincent Massol 35.1 39
Sorin Burjan 46.1 40 [[image:ChangePassword.png||style="border:1px solid black;]]
EvelinaSlatineanu 32.1 41
Silvia Macovei 44.2 42 = Editing an existing user =
JanEldenmalm 1.14 43
Vincent Massol 35.1 44 1. Log in as an administrator.
Silvia Macovei 44.1 45 1. Click on the **##Administration##** link in the top right corner of the screen to go to the main Administration page.
46 1. Click on the **##Users##** icon to bring up an overview of all users.
EvelinaSlatineanu 10.1 47 1. You have two options:
Sorin Burjan 47.1 48 11. Click the user name for the user to edit.
49 11*. 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.
50 11*. Click "**##Save and View##**" - to save the changes you have made.
Vincent Massol 35.1 51 11. Click on the pencil icon near the user you want to edit.
Sorin Burjan 47.1 52 11*. This will open up a lightbox with the main information of that user, which you can edit in place.
53 11*. After your modifications press ##**Save**## to be redirected to the **Users** view.
54 11*. There is also a link to the complete user profile, where you can proceed as above (first option).
JanEldenmalm 1.16 55
EvelinaSlatineanu 30.1 56
Sorin Burjan 46.1 57 [[image:EditUserProfile.png||style="border:1px solid black;]]
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
Sorin Burjan 46.1 69 [[image:DeleteUser.png||style="border:1px solid black;]]
EvelinaSlatineanu 31.1 70
Silvia Macovei 44.2 71 = Customizing the Registration page =
72
Silvia Macovei 44.1 73 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 74
Silvia Macovei 44.1 75 {{info}}
Vincent Massol 47.2 76 Since 2.2M2 this 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.
Silvia Macovei 44.1 77 {{/info}}
Caleb James DeLisle 43.1 78
Silvia Macovei 44.2 79 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 80
81 {{code language="none"}}
Vincent Massol 41.1 82 #if(!$xwiki.hasAccessLevel("view","XWiki.Registration")||$xwiki.getDocument("XWiki.Registration").isNew())
83 [...] ## here is the code you want to keep
84 #else
85 $xwiki.getDocument("XWiki.Registration").getTranslatedDocument().getRenderedContent()
86 #end
Silvia Macovei 44.1 87 {{/code}}

Get Connected