Creating a Ranger policy for Cloudera Data Visualization

Create a Ranger resource policy to grant users, groups, or roles access to Cloudera Data Visualization resources.

Cloudera Data Visualization includes default Ranger policies for sample content. You can create additional policies from the Resource Policies page for the dataviz service in Ranger.

  • Verify that Ranger authorization is enabled for your Cloudera Data Visualization instance and that you can create policies for the dataviz service in Ranger.

  • Identify the users, groups, or roles that need access, the permissions they need, and the numeric IDs of the resources you want to include. For a dataset, identify both the dataset ID and the ID of its parent data connection.

  1. In Ranger, open Resource Policies for the dataviz service.
  2. Click Add New Policy and enter a descriptive policy name.
  3. Under Add Policy Resources, select the resource and enter its numeric ID.

    For a dataset, enter the data connection ID and the dataset ID in the corresponding fields. Use * in a resource field to include all resources in that field's scope.

  4. Under Allow Rules, select the users, groups, or roles that need access and select the permissions to grant.
  5. Click Save.
Table 1. Ranger policy examples
Policy Resource fields and values
A single dataset Enter the parent connection ID in Data Connection and the dataset ID in Dataset.
All datasets Enter * in both Data Connection and Dataset.
All data connections Enter * in Data Connection.
All collections Enter * in Collection.
System operations Select System.