#### Step Four --- Basic User Management

##### Overview

In this section, you will learn the basics of user management. How to edit group permissions, create a new group and add a new user to groups.

##### Step Four (1) --- How to give permissions

Your account is that of an administrator and as such, you are able to do anything.
But what do anonymous users and registered users see in your site? Let's find out.
Click "logout" to become an anonymous user. This will take you to the homepage.
Once there, you notice that the main menu block no longer shows "news" nor "forum". The reason is that anonymous users don't have permission to access these modules.
So let's give our anonymous users some permissions. Login once again as adminstrator and go to the control panel.
From the User Module side-menu, click Group Management.

You will see a list of all the groups.

Since we have not created any of our own groups, these are the system-fixed groups, which you learned of in Step Two. On the right hand side of the Anonymous Users row, there are a set of 4 icons. Click the permissions icon of this row.

This leads you to the next screen, look at the top section, "System/module permissions". Here, each module is listed and for each youhave two options, "access" and "admin". In a large site, it is sometimes a good idea to have a trusted colleague that takes on some of the administration tasks for some modules. By selecting the "admin" checkbox, you can easily allow any group to have administration permissions for any module. Right now, though, we simply want the anonymous users to be able to have "access" to the "news" and "forum" modules. Select the "access" checkbox for both of these modules, then click

Let's confirm the result. Click "logout" to go back to the homepage as an Anonymous user. Now you should be able to see and have access to those modules.

##### Step Four (2) --- Create a new user

You also need to check what registered users can see and do on your site. For that, you need to create a new user as a test account. Login as administrator and go to the Admin side, the Control Panel. From the User Module side-menu, click User Management. Then, click on "Add a new user".

You will see the form to create a new user. You must fill the form fields of User name (Login ID), email and password.

###### User name

This is the user's Login ID. These must be unique. This time, enter "test".

###### Email address

You must enter a unique email address, this is a precondition of XOOPS2. For now, input an e-mail address different from your administrator account.

###### Password

Threre are two boxes for the password. Type the same password in the two boxes, the passwords must match. For now, use "test"

Note that the new user is automatically add to the Group of "Registered Users". Click on

Having created a new user successfully, go ahead and login with the new account. You can no longer see the news and forum links in the main menu block. Yes, that's right, it's because the registered users group don't have access permissions. Login as an Administrator and give access permissions to the Group of registered users, in the same way that you gave permissions to the anonymous users group.

##### Step Four (4) --- Site Launched

Now let's launch your site! Make some final settings. You previously invalidated the new user registration. To change the setting back again, login as administrator and from the Control Panel, go to the User Module side-menu and click Preferences.

Enable "Allow new user registration?". Now, let's check some of these other settings, too.

###### Notify by mail when a new user is registered?

When a new user registers, specific groups can get email notification.

###### Select activation type of newly registered users

After registering, a user must be activated. Being activated means being able to log in. There are several ways to activate users.

Require activation by user
  This is far and away the most popular setting in the world of website systems. A user gets an activation email when they register. They can then become able to login by clicking the activation URL on the mail.
Activate automatically
  In simple terms, there is really no activation mechanism, everyone is activated straight away.
Activation by administrators
  A user can only be activated by direct approval from the administrators.

###### Allow custom avatar upload?

This allows a user to upload their own avatars (picture/graphic), typically used in forums.

###### Site Launch

Everything is set! Click
!

##### Step Four (3) --- Add administrator team mate

Since many users will use your site, it can soon become difficult to manage your site by yourself. So, you decide to add your wiling friends as administrators. To do that, you first need to create a new group with specific permissions. Let's try it! First of all, let us assume that two of your friends, Jorn Dagrus and Michel Romano are currently registered users who we are going to elevate to become administrators.

First you will need to create two new users, "John Dagrus" and "Sean Romano".

Then, from the User Module side_menu, go to Group Management and create a new group called "News Administrators". Now, you need to add "John Dagrus" and "Sean Romano" to the group. There are several ways to do this, here are two, using the Group Member function and the User Search function.

###### Group Member function

On the right hand side of News Administrators row, there are a set of icons. Click the icon on the far right of this row. This is the members icon.

You will see two user lists --- a list of members and one of non-members.

In the list of users who are not members of this group, the first column is labelled "Assign" and has a checkbox. Find "John" & "Sean", click the checkbox of their rows, and click
.

This function is a standard function, but it's not useful when you have a lot of users.

###### User Search function

Try to search for users name through "User Search". From the User Module side-menu click User Search.

You will see the user search form. You can find users by filling different parameters, or simply the user name.

So, let's search for Sean.

Then, click the edit-icon in the search result. This will show you the edit form and there you can change the Groups that Sean is a member of.

##### Summary

Well, you've just finished learning the basic uses of XOOPS Cube Legacy. Now you know modules, blocks and basic user management, it will take you no time at all to get up and running with a powerful yet easy to manage website solution. For more informations, use the other help files in XOOPS Cube Legacy and Google.

Wishing your site a very successful future.

###### Note

XOOPS Cube Legacy only sets up a basic permission mechanism. This means that modules may have much greater permission controls. Also, XOOPS Cube has a role-based permission mechanism. If you want to understand XOOPS Cube more, you really should learn this.