Creating UME Roles and Assigning Them to Users

Use

Once the actions have been deployed on the J2EE Engine, the administrator can create the UME roles that contain the corresponding actions for the application.

For this tutorial, you will create the roles for accessing the application and assign them to the users as shown in the table below.

UME Roles and Their Corresponding Actions

UME Role

Description

Actions

Assign to User

EmployeeRole

Employee without any authorizations for booking reservations. Employees may view reservations however.

QuickCarRental.
AccessQuickCar
Rental

QuickCarRental.
ViewReservations

Employee

BookingAgentRole

Standard agent that is allowed to create and cancel reservations. However, standard agents may not create or cancel reservations for premium or luxury vehicle types.

QuickCarRental.
AccessQuickCar
Rental

QuickCarRental.
ViewReservations

QuickCarRental.
MaintainStandard

 

Agent

PremiumAgentRole

Agents that are allowed to maintain reservation for all vehicle types.

QuickCarRental.
AccessQuickCar
Re
ntal

QuickCarRental.
ViewReservations

QuickCarRental.
MaintainStandard

QuickCarRental.
MaintainPremium

Pr_Agent

If you have already created these roles, then you do not need to create new ones. Verify however, that these roles contain the corresponding actions and are assigned to the correct users.

Prerequisites

You are logged on to the user management administration console as an administrator.

The users exist on the J2EE Engine.

Procedure

...

       1.      In the user administration console, select Role in the Get field.

       2.      Choose Create Role.

The Details appear in the lower section of the Web browser.

       3.      For each role (EmployeeRole, BookingAgentRole, and PremiumAgentRole), create the role and assign the appropriate actions to the role:

                            a.      In the General Information tab page, enter the role name in the Unique Name field and a description.

                            b.      Select the Assigned Actions tab page.

                            c.      In the Available Actions section, enter QuickCarRental* in the Get field and choose Go to search for the actions that apply to the quick car rental application.

                            d.      Select the actions that apply to the role and choose Add. See the table above for the actions to use.

The actions are added as Assigned Actions.

See the figure below for the actions that apply to the EmployeeRole.

                            e.      Save the data.

       4.      For each role, assign the corresponding user to the role:

                            a.      Choose the Assigned Users tab page.

                            b.      Choose Modify.

                            c.      In the Available Users section, enter the user ID to search for in the Get field and choose Go.

The user appears in the Available Users section.

                            d.      Select the user and choose Add.

The user is added to the Assigned Userssection.

See the figure below for the assignment to the user Employee.

                            e.      Save the data.

       5.      Repeat steps 3 and 4 for each role.

Result

The UME roles EmployeeRole, BookingAgentRole and PremiumBookingAgentRole are created. These roles contain the actions that you specified in the actions file for the application.

Next Step:

Testing the Access Protection