Previous Topic: Change in 'Data In Use' Behavior for Client File System Agent (CFSA)Next Topic: Replace Web Triggers with Web-Targeted Data In Motion Triggers


Automatically Reassign Users with Custom Roles to Equivalent 'Official' Roles

If you upgrade from a previous version of CA DataMinder, any existing user assigned to a custom role retains this custom role in the current version of CA DataMinder. However, such custom user roles are not supported in the iConsole. In particular, you cannot specify which features are available to users with custom roles when they use the iConsole. In this situation, we recommend that you assign users without a recognized role to an equivalent 'official' user role.

You can manually reassign these users to existing user roles. Or you can use the 'CustomRoleUpgrade' utility to automate this process.

About the 'CustomRoleUpgrade' utility

This command line utility creates new user roles that correspond to these various custom roles held by your users. It then reassigns these users to the new user roles. CustomRoleUpgrade saves the new roles and the required user-role assignments in two files:

To implement these changes, you must manually import these files back onto the CMS.

To automatically reassign users with custom roles to equivalent official roles

  1. Run the following command on the CMS
    wgninfra -exec wigan/infrastruct/utils/CustomRoleUpgrade CreateFiles
    

    This command generates the CMS profile file and Account Import command file. By default, the files are saved in the \System subfolder below the CA DataMinder installation folder.

  2. (Optional) Rename the new user roles. Edit the CMS profile file and Account Import command file to give more meaningful names to the new roles. Take care to edit the name correctly in both files.

    For example, if CustomUserRole0022 is a specialist role for reviewers with responsibility for quarantined events, make the following changes:

    CRUMachineProfile.xml:

    Find the 'role 22' entry:

    <role index="22">
      <name>CustomUserRole0022</name> 
      <privileges>0x43502616420A</privileges> 
    </role>
    

    And change it to this:

    <role index="22">
      <name>Qarantine Reviewer</name> 
      <privileges>0x43502616420A</privileges> 
    </role>
    

    Important: Do not enclose the role name in double quotes, even if it includes spaces!

    CRUAccountImport.acc

    Find all entries like this:

    setrole,"unipraxis\oabassi",CustomUserRole0022 
    

    And change them to this:

    setrole,"unipraxis\oabassi","Qarantine Reviewer"
    

    Important: You must enclose the role name in double quotes, even if it does not include any spaces!

  3. Run the following command to import the CMS profile file.
    wgninfra -exec wigan/infrastruct/machine/Profile Import CRUMachineProfile.xml
    

    This command creates the new user roles on the CMS.

  4. (Optional) If you have not already done so, rename the new user roles. Use the Administration console to give more meaningful names to the new roles:
    1. Choose Tools, Manage User Roles.
    2. In the Manage User Roles dialog, click the user role that you want to rename.
    3. Type the new name for the role.
    4. Click OK.
  5. Run the following Account Import command:
    wgninfra -exec wigan/infrastruct/accounts/AccountImport Start /in CRUAccountImport.acc
    

    This command reassigns affected users to the new user roles.