Home

Configure user role

The user role is the default role when RBAC is enabled. Hence, you need not set the username/groups for the user role. However,  you can set the Views and the Data filters.

If you do not configure the Views, only the following default Views are shown:

  • Clusters>Resources

  • Clusters>Chargeback

  • Compute

  • Jobs

You do not have to set the username/groups for the user role as it is the default role when RBAC is enabled. However,  you can set the Views and the Data filters.

If you do not configure the Data filters, then the data is filtered on username and tags by default.

To configure the user role, do the following:

  1. From the installation directory, run the following command to set Views and Data filters for a role.

    • Views

      <Unravel installation directory>/unravel/manager config properties set com.unraveldata.rbac.role.user.views "view-id1, view-id2, view-id3"
      

      For example

      /opt/unravel/manager config properties set com.unraveldata.rbac.role.user.views "clusters.chargeback, compute, jobs"
      
    • Data Filters

      <Unravel installation directory>/unravel/manager config properties com.unraveldata.rbac.role.user.data.user.filter false
      <Unravel installation directory>/unravel/manager config properties set com.unraveldata.rbac.role.user.data.tags.filter true
      <Unravel installation directory>/unravel/manager config properties /manager config properties set com.unraveldata.rbac.role.user.data.field.<field> "<field1>,<field2>, \$<substitute-field>_<field>"
      

      For example:

      <Unravel installation directory>/unravel/manager config properties com.unraveldata.rbac.role.user.data.user.filter false
      <Unravel installation directory>/unravel/manager config properties set com.unraveldata.rbac.role.user.data.tags.filter true
      <Unravel installation directory>/unravel/manager config properties /manager config properties set com.unraveldata.rbac.role.user.data.field.queue "queue1, queue2, \$tags.rbac_queue"
      

    In <field>, you must specify the data filter you want to configure for the user role.

    In <view-id>, specify the view-id of the View that you want to configure for the user role.

  2. Stop Unravel, apply the changes, and start Unravel.

    <Unravel installation directory>/unravel/manager stop then config apply then start