(1) Scenario 1:
Team personnel changes frequently. For example, each business staff member's assigned business line often changes. If each business staff member is restricted to viewing only the data for their respective business line, then the applicable members for row and column permissions must be frequently updated during normal configuration. If there are many resources or personnel, the configuration can become very cumbersome.
(2) Scenario 2:
There are some region fields in the dataset. It is now expected that the business staff responsible for a region can automatically obtain permissions based on the value of the region field in the dataset, eliminating the need to manually configure or modify permissions.
(1) For example, our dataset contains a province field. Each Sales representative is responsible for a different province and can only view data for their assigned province.
(2) In this case, the dynamic configuration feature for row and column permissions can be used. First, add a province attribute in the user properties of the project center, then set the province attribute value for each corresponding Sales representative to the province they are responsible for.
(3) Next, on the row and column permissions configuration page, select Sync from dataset, then select the "sale_province" field equal to the "province" attribute. In this way, the applicable members for this row and column permission will automatically obtain dataset row and column permissions based on their own attribute values.
(4) Dynamic values also support configuring attributes for user groups. After adding row and column permissions to the entire user group, business staff within the user group can directly obtain the corresponding permissions. User attributes also support batch configuration through Open APIs for Users, User Groups, and Permissions.
By adding dataset 'row-level permission' rules, users within a specified scope can only view row data within that scope. Row-level permissions apply to datasets and control the data range that users can see when viewing charts or dashboards created from these datasets.
Therefore, when charts on a dashboard come from different datasets, it is sometimes necessary to configure multiple sets of row-level permissions for each dataset to control the data range that users can see across the entire dashboard.
The relationship between dashboards and datasets can be one-to-one or one-to-many. Datasets can be used to create charts, and charts can be saved to dashboards; dashboards can display multiple charts from different datasets within the same project.
This configuration applies to the following scenarios:
Scenarios where dashboard data needs to be personalized for each user. For example, with a performance dashboard, only one performance dashboard is configured. Different users see their own performance data when viewing the dashboard, while managers can see the data for the personnel they are responsible for.
Taking the course performance dashboard as an example, dashboard viewers are divided by permission into: managers, regional leaders, and frontline tutors. The data accessible to these three types of users is as follows:
Administrator: all data | Regional leader: data for their assigned base(s) | Frontline coach: their own performance data |
|---|---|---|
Before configuration, review the permissions to be configured, including which datasets are used by the dashboard, user types, and the data matching rules for each type of user.
Taking the performance dashboard as an example, suppose the performance dashboard is created from a single dataset. The permission rules are organized as follows:
In the performance dashboard, the charts correspond to the performance dataset, and permissions need to be granted to administrators, regional leaders, and frontline coaches. Among these, administrators are granted all permissions, regional leaders are granted permissions for the bases they are responsible for, and frontline coaches are granted their own performance permissions based on their email prefix (username).
Dashboard | Dataset | User role | Key attribute | Corresponding dataset field |
|---|---|---|---|---|
Performance dashboard | Performance dataset | Administrator | ||
Performance dashboard | Performance dataset | Regional leader | Assigned base | Base |
Performance dashboard | Performance dataset | Frontline coach | Username | Coach |
When configuring user groups, it is recommended to create user groups based on roles to facilitate batch selection when configuring row-level permissions later. If user groups are not created based on roles, usernames can also be entered manually one by one when configuring row-level permission rules.
Note: Only project administrators can create and modify user groups.
In Project Center - User Management - User Groups, click + to add a user group.
You can use User Group Management --> "Add User Group" to batch add all users of a department to a user group, or use User Management --> "Add User" to add a single user.
Tip: When adding a single user, you can paste multiple user email prefixes separated by commas to add them in bulk.
For example: zhangsan,lisi,wangwu. Copy this segment into the add user input box to batch add Zhang San, Li Si, and Wang Wu.
Configure user attributes in Project Center - User Attributes. User attributes refer to information about users in a project, which by default includes username, name, email, and department. By configuring user attributes, you can add attributes for users and match permissions based on these attributes.
If there are no attributes in the project, click "Attribute Management" to manage and add attributes.
Click "Batch Update Attributes" to assign corresponding attribute values to users in bulk.
Go to the performance dataset—Row and Column Permissions to create row-level permission rules. In this case, you need to create three row-level permission rules for the performance dataset, with the configurations shown in the following figures:
Tutor: Use dynamic value matching. As shown in the figure below, when the value of the Tutor field in the performance dataset is equal to the value of the Username attribute of the user in the Tutor user group, the tutor can view the corresponding data.
Regional leader: Use dynamic value matching. As shown in the figure below, when the value of the Base field in the performance dataset is equal to the value of the Responsible Base attribute of the user in the Leader user group, the leader can view the corresponding data.
Administrator: Use dynamic value matching. As shown in the figure below, when the value of the Base field in the performance dataset is any value, the administrator can view the corresponding data, that is, all data.
Configure and save in sequence. On the data permission rules page of the dataset, you can see that there are three corresponding row-level permission rules under this dataset. If you are unsure whether the rules are effective, you can use the 3.7 Permission simulation verification feature to confirm.
After configuring row-level permissions, you also need to grant dashboard permissions to the corresponding users. In the upper right corner of the dashboard, click Authorize, search for the user group, and directly grant permissions to the user group.