#### 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" and "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 the adminstrator and go to the control panel. In the User Module control 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 row for Anonymous Users, there are a set of 4 icons. Click the permission icon of this row.

In the next screen, look at the top section, "System/module permissions". Here, each module is listed and for each you are offered two choices, "access" and "admin". In a large site, it is sometimes a good idea to have a trusted colleague take 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. You will now be able to see the display you wanted.

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

You also need to check what registered users can see 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 and the Control Panel. In the User Module control menu, click User Management. Next, click on "Add a new user".

You will see the form for creating a new user. You must input 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 to your administrator account.

It is not good manners to use dummy email addresses.

###### Password

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

Note that the Group setting is automatically set to "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 doesn't have access permissions. Login as an Administrator and give access permissions to the 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 in the Control Panel, go to the User Module control 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.

###### 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".

Next, in the User Module control 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 the row for News Administrators, 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 in their rows, and click
.

This function is a standard function, but it's not suseful when you have a lot of users because you can't search for users using this function.

###### User Search function

If the name of the users you are looking for is clear, try to search for them through "User Search". In the User Module control menu click User Search.

You will see the user search form. You can find users by searching on lots of different parameters, including simply the user name.

So, let's look 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.