Wiki source code of User Management
Version 50.3 by Vincent Massol on 2011/12/01
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}} | ||
2 | |||
3 | {{info}} | ||
4 | These instructions assume you're using XWiki 1.2 or later with **[[Albatross, Toucan or Colibri skins>>AdminGuide.Skins]]** (screenshots for Colibri). | ||
5 | {{/info}} | ||
6 | |||
7 | {{info}} | ||
8 | Note: The default skin is currently Colibri. | ||
9 | {{/info}} | ||
10 | |||
11 | = Adding users to your wiki = | ||
12 | |||
13 | 1. Log in as an administrator. | ||
14 | 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) | ||
15 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
16 | 1. Click on **##Add new user##** button to open a registration page as shown on the image below. | ||
17 | 1. Complete the user information and press the **##Save##** button. | ||
18 | |||
19 | |||
20 | [[image:AddUser.png||style="border:1px solid black;]] | ||
21 | = Changing a user's password = | ||
22 | |||
23 | == Changing the password for any user == | ||
24 | |||
25 | 1. Log in as an administrator. | ||
26 | 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) | ||
27 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
28 | 1. Click on the name for the user for which to change the password. This lead you to the user's page. | ||
29 | 1. Go to my Preferences tab and click Change Password button. | ||
30 | 1. Modify the password and click the **##Update##** button to save your change. Don't forget to tell the user! | ||
31 | |||
32 | [[image:ChangePassword.png||style="border:1px solid black;]] | ||
33 | == Changing the password for the logged in user == | ||
34 | |||
35 | To change **your own password**: | ||
36 | |||
37 | 1. Click on your user name in the top right corner of the screen. This will redirect you to your profile. | ||
38 | 1. Click on the Preferences tab and the click on **##Change password##** button. | ||
39 | 1. Modify the password and click the **##Update##** button to save your change. | ||
40 | |||
41 | [[image:ChangePassword.png||style="border:1px solid black;]] | ||
42 | |||
43 | = Editing an existing user = | ||
44 | |||
45 | 1. Log in as an administrator. | ||
46 | 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) | ||
47 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
48 | 1. You have two options: | ||
49 | 11. Click the user name for the user to edit. | ||
50 | 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. | ||
51 | 11*. Click "**##Save and View##**" - to save the changes you have made. | ||
52 | 11. Click on the pencil icon near the user you want to edit. | ||
53 | 11*. This will open up a lightbox with the main information of that user, which you can edit in place. | ||
54 | 11*. After your modifications press ##**Save**## to be redirected to the **Users** view. | ||
55 | 11*. There is also a link to the complete user profile, where you can proceed as above (first option). | ||
56 | |||
57 | |||
58 | [[image:EditUserProfile.png||style="border:1px solid black;]] | ||
59 | = Deleting a user = | ||
60 | |||
61 | 1. Log in as an administrator. | ||
62 | 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) | ||
63 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
64 | 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. | ||
65 | |||
66 | {{info}} | ||
67 | 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... | ||
68 | {{/info}} | ||
69 | |||
70 | [[image:DeleteUser.png||style="border:1px solid black;]] | ||
71 | |||
72 | = Customizing the Registration page = | ||
73 | |||
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. | ||
75 | |||
76 | {{info}} | ||
77 | 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. | ||
78 | {{/info}} | ||
79 | |||
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: | ||
81 | |||
82 | {{code language="none"}} | ||
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 | ||
88 | {{/code}} |