### Managing user accounts

To manage user accounts, you must be a member of the administrator role in order to access the JReport Administration page. Then, on the JReport Administration page, click Security on the system toolbar and switch to the User tab, where you can manage the user accounts as required. See the tab.

The following topics describe how to manage a user account.

#### Creating a new user account

1. In the Realm tab, select a realm.
2. In the User tab, click the Create a New User link.
3. In the New User dialog, provide the information for the user as required.
4. Click OK, and the user will then be added to the user account table.

#### Modifying a user account

1. In the Realm tab, select the realm in which the user is.
2. In the User tab, click the name of the user.
3. In the Edit User dialog, edit the user information as required.
4. When done, click OK to accept the changes.

#### Adding a role to a user

A user can be assigned more than one role. A user that holds multiple roles has all the privileges that these roles have.

To add a role to a user:

1. In the Realm tab, select the realm in which the user is.
2. In the User tab, click the role(s) link of the user.
3. In the dialog, click the Add Roles link.
4. In the role table, check the role that you want to add to the user.
5. Click the Add button to add the specified role.
6. Click the User tab to return to the user list.

#### Adding a user to a group

A user can be assigned to more than one group. A user that belongs to multiple groups has all the privileges that these groups have.

To add a user to a group:

1. In the Realm tab, select the realm in which the user is.
2. In the User tab, click the group(s) link of the user.
3. In the dialog, click the Add Groups link.
4. In the group table, check the group that you want to add the user to.
5. Click the Add button.
6. Click the User tab to return to the user list.

#### Auditing a specific user

You can have the server to audit a user, and the resulting information will be written into the log files.

To audit a user:

1. In the Realm tab, select the realm in which the user is.
2. In the User tab, click the Auditing link of the user.
3. In the Auditing dialog, specify the events which you want to have audited for this user.
4. When done, click OK to accept the changes.

#### Changing the password of a user

1. In the Realm tab, select the realm in which the user is.
2. In the User tab, click the Change Password link of the user.
3. In the Change Password dialog, specify the password of the current logged in user.
4. Specify the new password for the user and confirm it by entering it a second time.
5. When done, click OK to accept the changes.

#### Setting user preferences

1. In the Realm tab, select the realm in which the user is.
2. In the User tab, click the Preferences link of the user.
3. In the Preferences dialog, specifies the server preferences and DHTML preferences for the user accordingly.
4. When done, click OK to accept the changes.

#### Deleting a user account

If you find a user account is no longer required, you can delete it by clicking the corresponding Delete link in the Control column of the user account table. However, the built-in user accounts, such as admin and guest, and users that hold roles other than the everyone role, or that belong to any group, cannot be deleted. A user cannot delete himself from the user list either.