Table of Contents

Search

  1. Preface
  2. Part 1: Introduction
  3. Part 2: Samples and Examples
  4. Part 3: Tools and Utilities
  5. Part 4: SDK Resources

Assigning Roles to Users

Assigning Roles to Users

You can assign roles to users that are registered in an Operational Reference Store. Before you assign roles to users, the roles must exist in the Operational Reference Stores. Roles have special privileges associated with them. When you assign roles to users, the users inherit the privileges of the role.
  1. Ensure that the users is registered in the Operational Reference Store.
  2. Ensure that roles exist in the Operational Reference Store.
  3. Configure the
    automation.properties
    file.
    The following table describes the properties in the
    automation.properties
    file that you need to configure:
    Property
    Description
    MDM.number.of.user_roles_relationships
    Required. Number of users to which you want to assign roles.
    You can create a maximum of 1000 relationships each time you run the command to assign roles to users.
    MDM.user_roles_rel.username<n>
    Required. User name of a user to which you want to assign a role.
    MDM.user_roles_rel.databaseIds<n>
    Required. Operational Reference Store ID.
    MDM.user_roles_rel.roles<n>
    Required. Name of a role that you want to assign to a user. The must exist in the Operational Reference Store. Separate each role with a comma.
  4. Open a command prompt and navigate to the following directory:
    On UNIX.
    <Resource Kit installation directory>/automation/Misc_Automation
    On Windows.
    <Resource Kit installation directory>\automation\Misc_Automation
  5. To assign roles to users, run the following command:
    On Windows.
    AssignRolesToUser.cmd
    On UNIX.
    AssignRolesToUser.sh
    Roles are assigned to the Operational Reference Store users.
    If a user is not registered with the Operational Reference Store, the MDM Hub generates the following error:
    com.delos.cmx.server.datalayer.repository.ReposException: SIP-10318: Could not get user for role due to data access error.

0 COMMENTS

We’d like to hear from you!