Example of creating a role hierarchy

The following example demonstrates creating a four-level role hierarchy starting from the top and using the Properties button on the Hierarchy tab to open property sheets for successive contained roles. It also demonstrates how to expand the hierarchy view.

The example uses four roles: president, director, manager, worker. In this simple hierarchy, we assume that each role has specific permissions plus all the permissions of subordinates. Therefore, we will create a hierarchy in which each role contains the subordinate roles.

StepsCreating a hierarchy

  1. Open the property sheet for the role president.

  2. On the Hierarchy tab, assign the role director.

  3. In the list, select director and click Properties. The property sheet for director opens.

  4. On the Hierarchy tab for director’s property sheet, assign the role manager.

  5. In the list, select manager and click Properties.

  6. On the Hierarchy tab for manager’s property sheet, assign the role worker.

You now have the series of opened property sheets as illustrated. As you begin closing the property sheets, notice that roles in the list have a plus or minus sign next to them if they contain other roles. You can expand or contract the hierarchy by clicking on the plus and minus signs just as you can expand the object tree in the left pane of the Sybase Central main window.