Configuring Viewpoint > Configuring security in Viewpoint > Configuring the permissions map

2.4.6 Configuring the permissions map

To configure the permissions map

  1. Open the core.xml file located in the Viewpoint home directory. Locate the <security> element.
  2. Locate the <permissions-map> section. It specifies how authenticated users are authorized in the Viewpoint framework. For each principal value that should be considered, an arbitrary number of roles and permissions are assigned.
  3. Set the <principal> element.
    1. Set the type attribute to the "simple" class name of the principal.
    2. Set the name attribute to the value of the principal. If a user is assigned a principal that matches this type and value, the given roles and permissions are assigned to that user.
    3. Set the <role> child element to the role the user is given if they have the given principal. See Configuring role definitions  for more information.

    Example 2-1: Permissions map configuration

    <permissions-map>
      <principal type="MoabSshUserPrincipal" name="cri">
        <role name="user"/>
      </principal>
      <principal type="MoabAdminPrincipal" name="ADMIN5">
        <role name="user"/>
      </principal>
      <principal type="ViewpointRolePrincipal" name="user">
        <role name="user"/>
      </principal>
      <principal type="ViewpointRolePrincipal" name="admin">
        <role name="admin"/>
      </principal>
    </permissions-map>

Related topics