### Managing roles

To manage roles, 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 Role tab, where you can manage the roles as required. See the tab.

The following topics describe how to manage a role.

#### Creating a new role

1. In the Realm tab, select a realm.
2. In the Role tab, click the Create a New Role link.
3. In the New Role dialog, specify the settings for the role.
4. Click OK, and the new role will then be added to the role list table.

#### Modifying a role

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

#### Editing members of a role

You can edit the members of a role, such as adding a new user or role, or removing a member from the role.

To edit the members in a role:

1. In the Realm tab, select a realm in which the role is.
2. In the Role tab, browse to the specific role, and then click the member(s) link.
3. Edit the members of the role as follows:
   - To remove a member from the role, check the member and then click the Remove button.
   - To add a member to the role, click the Add Members link, check the new member, and then click the Add button.

Notes:

- A role can have more than one child group, child role and parent role.
- A parent role cannot be added to the current role as its child.
- Some members cannot be removed from the role they belong to, such as admin in the administrator role and guest in the everyone role. A user cannot remove himself from the administrators role.

#### Deleting a role

If you find a role is no longer required, you can delete it by clicking the corresponding Delete link in the Control column of the role list table. However, the built-in roles, such as administrators and everyone, and roles that are not empty, cannot be deleted.