Wiki source code of User Management
Version 46.1 by Sorin Burjan on 2010/06/16
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
44.2 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}} |
![]() |
44.1 | 2 | |
3 | {{info}} | ||
![]() |
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). |
![]() |
44.1 | 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 | |
![]() |
46.1 | 15 | [[image:AddUser.png||style="border:1px solid black;]] |
![]() |
44.2 | 16 | = Changing a user's password = |
![]() |
34.1 | 17 | |
![]() |
44.2 | 18 | == Changing the password for any user == |
![]() |
35.1 | 19 | |
20 | 1. Log in as an administrator. | ||
![]() |
44.1 | 21 | 1. Click on the **##Administration##** link in the top right corner of the screen to go to the main Administration page. |
22 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
![]() |
35.1 | 23 | 1. Click on the name for the user for which to change the password. This lead you to the user's page. |
![]() |
46.1 | 24 | 1. Go to my Preferences tab and click Change Password button. |
![]() |
44.1 | 25 | 1. Modify the password and click the **##Update##** button to save your change. Don't forget to tell the user! |
![]() |
35.1 | 26 | |
![]() |
46.1 | 27 | [[image:ChangePassword.png||style="border:1px solid black;]] |
![]() |
44.2 | 28 | == Changing the password for the logged in user == |
![]() |
1.23 | 29 | |
![]() |
44.1 | 30 | To change **your own password**: |
31 | |||
![]() |
35.1 | 32 | 1. Click on your user name in the top right corner of the screen. This will redirect you to your profile. |
![]() |
46.1 | 33 | 1. Click on the Preferences tab and the click on **##Change password##** button. |
![]() |
44.1 | 34 | 1. Modify the password and click the **##Update##** button to save your change. |
![]() |
35.1 | 35 | |
![]() |
46.1 | 36 | [[image:ChangePassword.png||style="border:1px solid black;]] |
![]() |
32.1 | 37 | |
![]() |
44.2 | 38 | = Editing an existing user = |
![]() |
1.14 | 39 | |
![]() |
35.1 | 40 | 1. Log in as an administrator. |
![]() |
44.1 | 41 | 1. Click on the **##Administration##** link in the top right corner of the screen to go to the main Administration page. |
42 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
![]() |
10.1 | 43 | 1. You have two options: |
![]() |
35.2 | 44 | 11. Click the user name for the user to edit. |
![]() |
44.1 | 45 | 111. |
46 | 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. | ||
47 | 111*. Click "**##Save and View##**" - to save the changes you have made. | ||
![]() |
35.1 | 48 | 11. Click on the pencil icon near the user you want to edit. |
![]() |
44.1 | 49 | 111. |
![]() |
35.1 | 50 | 111*. This will open up a lightbox with the main information of that user, which you can edit in place. |
![]() |
44.1 | 51 | 111*. After your modifications press ##**Save**## to be redirected to the **Users** view. |
![]() |
35.1 | 52 | 111*. There is also a link to the complete user profile, where you can proceed as above (first option). |
![]() |
1.16 | 53 | |
![]() |
30.1 | 54 | |
![]() |
46.1 | 55 | [[image:EditUserProfile.png||style="border:1px solid black;]] |
![]() |
44.2 | 56 | = Deleting a user = |
![]() |
1.25 | 57 | |
![]() |
35.2 | 58 | 1. Log in as an administrator. |
![]() |
44.1 | 59 | 1. Click on the **##Administration##** link in the top right corner of the screen to go to the main Administration page. |
60 | 1. Click on the **##Users##** icon to bring up an overview of all users. | ||
61 | 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 | 62 | |
![]() |
44.1 | 63 | {{info}} |
64 | 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... | ||
65 | {{/info}} | ||
![]() |
35.2 | 66 | |
![]() |
46.1 | 67 | [[image:DeleteUser.png||style="border:1px solid black;]] |
![]() |
31.1 | 68 | |
![]() |
44.2 | 69 | = Customizing the Registration page = |
70 | |||
![]() |
44.1 | 71 | 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 | 72 | |
![]() |
44.1 | 73 | {{info}} |
74 | 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. | ||
75 | {{/info}} | ||
![]() |
43.1 | 76 | |
![]() |
44.2 | 77 | 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 | 78 | |
79 | {{code language="none"}} | ||
![]() |
41.1 | 80 | #if(!$xwiki.hasAccessLevel("view","XWiki.Registration")||$xwiki.getDocument("XWiki.Registration").isNew()) |
81 | [...] ## here is the code you want to keep | ||
82 | #else | ||
83 | $xwiki.getDocument("XWiki.Registration").getTranslatedDocument().getRenderedContent() | ||
84 | #end | ||
![]() |
44.1 | 85 | {{/code}} |