Adding User Roles

A user role defines which relationship or entity a user has permission for and what the permissions is. With SmartMapper Business UI, the administrator can add more user roles to assign to users.

User roles are defined in the role_permissions.xml permission file, which is generated when starting the SmartMapper Business UI server. By default, a commonuser role is created. A user with this user role assigned has Write permission for all existing entities and relationships.

Procedure

  1. Navigate to the TIBCO_HOME\bw\palettes\smartmapper\7.1\admin\config\system directory and open the role_permissions.xml file.
  2. Append the following node after the roles node to add a new user role.
    <role name="name" description="description">
    </role>

    where name is the name of the user role and description is the description of the user role.

  3. Append the following node under added role node to specify the permission that a user has for an entity.
    <application name="application_name">      
        <entity name="entity_name" permission="W|R|N"/>    
     </application>
    where name is the name of an application and an entity, and permission is the permission for the entity. The value of permission is W, R, or N. See Permission for more details.
    Note: When defining permission for entities, the application to which the entities to be added is required.
  4. Append the following node under the added role node to specify the permission that a user has for a relationship.
     <relationship name="relationship_name" permission=W|R|N/>

    where name is the name of a relationship and permission is the permission for the relationship. The value of permission is W, R, or N. See Permission for more details.

  5. Repeat Step 3 and Step 4 to assign permissions for other entities and relationships. Save the permission file.