Oracle by Example brandingManaging Role Definitions Using CSV File Packages

section 0Before You Begin

This hour long tutorial shows you how to add function and aggregate privileges to roles using CSV file packages.

Background

In order to enable the new HCM Redesigned Cloud User Experience, there are a number of steps you must perform. One of these steps is to add function and aggregate privileges to your custom roles.

This tutorial will show you, the security manager, how to add privileges in bulk to a custom role, using CSV file packages.

What Do You Need?

  • A user with the IT Security Manager role
  • The HCM Responsive User Experience Setup Information White Paper (Doc ID 2399671.1)

section 1Research

Before you start modifying roles, you need to research the changes you need to make.

The privileges that are used by the Redesigned User Experience UIs are documented in the following sections of the HCM Responsive User Experience Setup Information White Paper (Doc ID 2399671.1)

  • Privileges Required for the Redesigned User Experience
  • Privileges Securing Lists of Values in the Redesigned User Experience

For this tutorial we are going to add privileges for Career and Succession Management, using the 20A version of the white paper.

  1. Open the HCM Responsive User Experience Setup Whitepaper in MOS Doc 2399671.1.

  2. View Privileges Securing Lists of Values in the Redesigned User Experience to find the privilege granting access to the Succession Management LOV.

    There is an aggregate privilege for Succession Management : ORA_HRM_REST_SERVICE_ACCESS_SUCCESSION_MANAGEMENT_LOVS. The aggregate privilege already exists in my roles, but if needed, it can be added in the same manner as the other aggregate privileges in the table below.

  3. View Priviliges Reqiured for the Redesigned User Experience > Career and Succession.

    table from white paper.png follows
  4. Using this information, we have determined we have roles for Human Resource Specialist, Line Manager, Employee, and Contingent Worker. Since the Employee and Contingent Worker roles require just one new privilege, it can be added using the Security Console. Adding a privilege to a role using the Security Console is not covered by this tutorial.

    Existing Role Privilege Type Privilege
    Line Manager Function Security Privilege HRM_MANAGE_TALENT_POOL_PRIV
    Line Manager Function Security Privilege HRT_VIEW_CAREER_OVERVIEW_BY_MANAGER_PRIV
    Human Resource Specialist Function Security Privilege HRM_CREATE_TALENT_POOL_PRIV
    Human Resource Specialist Function Security Privilege HRM_MANAGE_TALENT_POOL_PRIV
    Human Resource Specialist Function Security Privilege HRM_IDENTIFY_TALENT_POOL_MEMBERS_AND_ASSIGN_GOALS_PRIV
    Human Resource Specialist Function Security Privilege HRT_MANAGE_BEST_FIT_BATCH_PROCESS_PRIV
    Human Resource Specialist Function Security Privilege HRT_MANAGE_PROFILE_UPGRADE_MAPPING_PRIV
    Human Resource Specialist Function Security Privilege HRT_SEARCH_TALENT_PROFILE_PRIV
    Human Resource Specialist Function Security Privilege HRT_ACCESS_MY_CAREER_AND_PERFORMANCE_PRIV
    Human Resource Specialist Aggregate Privilege ORA_HRT_WORKFORCE_PROFILE_ADMINISTRATION_DUTY
    Human Resource Specialist Aggregate Privilege ORA_HRT_WORKFORCE_PROFILE_SPECIALIST_DUTY

    Now that we know what roles we are updating with what privileges we are ready to proceed in the UI.


section 2Exporting Custom Role Definitions to a CSV File Package

  1. Log on as a user with the IT Security Manager role.
  2. Navigate to the Setup and Maintenance work area:

    Navigator > [Others] Setup and Maintenance

  3. Select the Workforce Deployment offering.

    Setup:Workforce Deployment.png
  4. Select the functional area Users and Security.

    Functional Area Users and Security
  5. Add the Actions menu if it is not visible in the task list region.

    Modify View to add Actions Column.
  6. In the Manage Job Roles: Actions menu choose Export to CSV File > Create New.

    Manage Job Roles: Actions > Export to CSV File > Create New

    The Export Setup Data to CSV File page has been launched.

  7. Click Add to add your custom Line Manager and Human Resource Specialist roles to the set of roles that will be exported.

    If you do not do this, all roles will be exported.

    Add
  8. As you find your roles select them and click apply. Once all your roles have been added click Save and close.

    Select and Add: Functional Security Custom Roles
  9. An Export process name will be defaulted. You can change this if you want to. In this tutorial we will change it to "Roles Responsive Update 20A Demo".

    Click Submit to initiate the Export.

    Submit Process

    A confirmation that the process has been initiated will be generated. Click OK.

    Confirmation
  10. In the Manage Job Roles: Actions menu choose Export to CSV File > View All.

    Manage Job Roles: Actions > Export to CSV File > View All
  11. Monitor the progress of the export process. Press the refresh button to refresh the page. When it has completed, select "Download > CSV File Package" from the actions menu.

    This will download a zip file to your desktop.

    Actions > CSV File Package

section 3Modify the CSV File Package

  1. Unzip the CSV File Package and view the contents. There will be four files.

    • ASM_SETUP_CSV_METADATA.xml defines the structure of the csv files.
    • ORA_ASE_FUNCTIONAL_SECURITY_CUSTOM_ROLES.csv contains basic information about each of the exported roles.
    • ORA_ASE_FUNCTIONAL_SECURITY_CUSTOM_ROLE_HIERARCHY.csv contains the role hierarchy memberships for the exported roles.
    • ORA_ASE_FUNCTIONAL_SECURITY_CUSTOM_ROLE_PRIVILEGE_MEMBERSHIP.csv contains the function security privilege grants for the exported roles.

    You do not need to make any changes to ASM_SETUP_CSV_METADATA.xml and ORA_ASE_FUNCTIONAL_SECURITY_CUSTOM_ROLES.csv.

    CSV File Package Contents
  2. We will be modifying the role hierarchy file to add the aggregate privileges and the role privilege membership file to add the function security privileges to our roles. You may use any editor you choose to edit the .csv files. By default the files will open in MS Excel for editing.

    My role hierarchy file currently contains the following:

    "ParentRole","MemberRole","AddOrRemoveRoleMembership"
    "RFM_HUMAN_RESOURCE_SPECIALIST","ORA_PER_REST_SERVICE_ACCESS_WORKER_AS_HR","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","ORA_HRM_REST_SERVICE_ACCESS_SUCCESSION_MANAGEMENT_LOVS","ADD"
    "RFM_LINE_MANAGER","ORA_PER_REST_SERVICE_ACCESS_WORKER_AS_MANAGER","ADD"
    "RFM_LINE_MANAGER","ORA_HRM_REST_SERVICE_ACCESS_SUCCESSION_MANAGEMENT_LOVS","ADD"

    To modify the file I need to add the following lines:

    "RFM_HUMAN_RESOURCE_SPECIALIST","ORA_HRT_WORKFORCE_PROFILE_ADMINISTRATION_DUTY","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","ORA_HRT_WORKFORCE_PROFILE_SPECIALIST_DUTY","ADD"

    Note: you may keep only the headers and add new roles, I choose to keep the file contents that already existed.

    My role hierarchy file now contains:

    "ParentRole","MemberRole","AddOrRemoveRoleMembership"
    "RFM_HUMAN_RESOURCE_SPECIALIST","ORA_PER_REST_SERVICE_ACCESS_WORKER_AS_HR","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","ORA_HRM_REST_SERVICE_ACCESS_SUCCESSION_MANAGEMENT_LOVS","ADD"
    "RFM_LINE_MANAGER","ORA_PER_REST_SERVICE_ACCESS_WORKER_AS_MANAGER","ADD"
    "RFM_LINE_MANAGER","ORA_HRM_REST_SERVICE_ACCESS_SUCCESSION_MANAGEMENT_LOVS","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","ORA_HRT_WORKFORCE_PROFILE_ADMINISTRATION_DUTY","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","ORA_HRT_WORKFORCE_PROFILE_SPECIALIST_DUTY","ADD"

    Modify your role hierarchy file in a similar manner, using your parent role names. The final file will look like this.

    CSV Opened in Excel

  3. My role privilege membership file currently contains the following:

    "ParentRole","MemberPrivilege","AddOrRemovePrivilegeMembership"
    "RFM_HUMAN_RESOURCE_SPECIALIST","PER_REST_SERVICE_ACCESS_ADDRESS_LOVS_PRIV","ADD"
    "RFM_LINE_MANAGER","CMP_REST_SERVICE_ACCESS_SALARY_BASES_LOV_PRIV","ADD"

    To modify the file I need to add the following lines:

    "RFM_LINE_MANAGER","HRT_VIEW_CAREER_OVERVIEW_BY_MANAGER_PRIV","ADD"
    "RFM_LINE_MANAGER","HRM_MANAGE_TALENT_POOL_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRM_CREATE_TALENT_POOL_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRM_MANAGE_TALENT_POOL_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRM_IDENTIFY_TALENT_POOL_MEMBERS_AND_ASSIGN_GOALS_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRT_MANAGE_BEST_FIT_BATCH_PROCESS_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRT_MANAGE_PROFILE_UPGRADE_MAPPING_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRT_SEARCH_TALENT_PROFILE_PRIV","ADD"

    Note: you may keep only the headers and add new privileges, I choose to keep the file contents that already existed.

    My role privilege membership file now contains:

    "ParentRole","MemberPrivilege","AddOrRemovePrivilegeMembership"
    "RFM_HUMAN_RESOURCE_SPECIALIST","PER_REST_SERVICE_ACCESS_ADDRESS_LOVS_PRIV","ADD"
    "RFM_LINE_MANAGER","CMP_REST_SERVICE_ACCESS_SALARY_BASES_LOV_PRIV","ADD"
    "RFM_LINE_MANAGER","HRT_VIEW_CAREER_OVERVIEW_BY_MANAGER_PRIV","ADD"
    "RFM_LINE_MANAGER","HRM_MANAGE_TALENT_POOL_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRM_CREATE_TALENT_POOL_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRM_MANAGE_TALENT_POOL_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRM_IDENTIFY_TALENT_POOL_MEMBERS_AND_ASSIGN_GOALS_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRT_MANAGE_BEST_FIT_BATCH_PROCESS_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRT_MANAGE_PROFILE_UPGRADE_MAPPING_PRIV","ADD"
    "RFM_HUMAN_RESOURCE_SPECIALIST","HRT_SEARCH_TALENT_PROFILE_PRIV","ADD"

    Modify your role privilege membership file in a similar manner, using your parent role names. The final file will look like this.

    CSV Opened in Excel
  4. Save your modified files.
  5. If the original zip file is still in your folder, delete it. Then compress the four remaining files into a zip file. This is the CSV file package that you will import in the next step.

section 4Importing the CSV File Package to Upload the Changes to the Custom Role Definitions

  1. Navigate to the Setup and Maintenance work area:

    Navigator > [Others] Setup and Maintenance

  2. Select the Workforce Deployment offering.

    Setup:Workforce Deployment.png
  3. Select the functional area Users and Security.

    Functional Area Users and Security
  4. Select Manage Job Roles: Actions > Import from CSV Files > Create New.

    Manage Job Roles: Actions > Import from CSV Files > Create New

    The Import Setup Data from CSV File page will launch.

  5. Choose the zip file you created.

    Choose File.png
  6. Click Submit.

    Submit

    A confirmation that the process has been submitted will display. Click OK.

    Confirmation
  7. Click Manage Job Roles: Actions > Import from CSV Files > View All to view the status of your import process.

    View All Import Jobs

    When the job is completed successfully, click done. If the job has errors download the logs from the actions menu to troubleshoot the errors.

    View Completion Status

    You can now view the roles in the security console and see the changes reflected in the roles.

  8. After you have successfully added the privileges to your custom roles you should regenerate your data roles.

more informationWant to Learn More?