Setting up your environment for Role Mining

To run a role mining campaign in EmpowerID, your environment must have Python version 2.7 or newer, as well as the numpy and matplotlib libraries installed on at least one EmpowerID server. If you are lacking this prerequisite software, the easiest way to get it is to install one of the variants of the conda package manager, Anaconda or Miniconda. Of the two, Miniconda is the quickest option as it includes just conda, its dependencies and Python, whereas Anaconda installs hundreds of additional packages that are not needed for role mining. As this is the case, in this topic we demonstrate how to set up your environment using Miniconda.

In addition to installing the above prerequisite software, you need to set the values of the PythonCompilerPath and PythonScript workflow parameters for the InvokeRoleMiningScript workflow. This workflow is executed each time you initiate a role mining campaign. The above parameters specify the path to the python executable, as well as the role mining python script you received from EmpowerID.

To install Python, Numpy and Maplotlit

  1. Point your browser to https://conda.io/miniconda.html and download the 64-bit Windows installer for the latest version of Python.
  2. Once downloaded, open the executable and follow the instructions until completed, accepting the default settings.
  3. After completing the installation, open a command window and enter the following to install the numpy and matplotlib Python libraries and their dependencies:
  4. conda install numpy matplotlib
  5. Enter y to proceed with the installation.
  6. Once the installation completes, close the command window.

To set the workflow parameter values

  1. From the Navigation Sidebar of the EmpowerID Web application, navigate to the Request Workflow management page by expanding Resources and clicking Workflows.
  2. From the Request Workflow management page, search for Role Mining and then click the link for Analyze Role Mining Data.
  3. This directs you to the View One page for the workflow. View One pages allow you to view information about resources in EmpowerID and manage that information as needed.

  4. From the View One page, expand the Request Workflow Parameters accordion and click the Edit button for the PythonCompilerPath parameter.
  5. In the Value field of the dialog that opens, type the path to the Python executable in your environment and then click Save.
  6. Back in the Request Workflow Parameters accordion, click the Edit button for the PythonScript parameter.
  7. In the Value field of the dialog that opens, type the path to the runRoleMining Python script in your environment and then click Save.
  8. You may modify the values of the other workflow parameters as needed.