ExampleΒΆ
The following figure illustrates how users, groups and roles relate.
 
In the figure above, there are:
- Six roles: - _run_as,- _administrator,- _search,- _import,- _metadata_w, and- metadata_r.
- Two regular groups: - regular_userand- readonly_user.- The group - readonly_userdepends on the roles- _searchand- _metadata_r. The second group,- regular_userdepends on the roles- _importand- _metadata_w, and also the group- readonly_user.- In the last relation, - readonly_useris called the parent group and- regular_useris the child group. A user which belong to- regular_useractually has all four roles.
- Three users: - app_user,- jdoe, and- mrpink.- The user - app_userhas the role- _run_as,- jdoehas the roles- _administrator,- _search,- _import,- _metadata_wand- _metadata_rand- mrpinkhas the roles- _searchand- _metadata_r.
To visualize the users and groups like above, see User/group visualization.