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