Skip to main content

Row and Column Permissions

Overview

Row and Column Permissions are a row-level and column-level permission control feature provided by Guandata BI. By configuring these permissions on a Dataset, you can define invisible fields or filtered records for different related users or user groups to meet personalized data security requirements.

Column permissions: control which fields users cannot view. This is vertical control that hides entire columns. For example, hide the cost field so ordinary employees cannot see it.

Row permissions: control which data records users can view. This is horizontal control that filters rows. For example, allow East China sales personnel to view only East China region data.

Business Value

  • Fine-grained permission control: implement field-level and record-level access control
  • Data security assurance: prevent sensitive data leakage and ensure compliant data usage
  • Flexible configuration: support multiple condition types and custom functions to fit complex business scenarios
  • Lower management cost: quickly apply permission strategies through templates and improve administrative efficiency

Applicable Scenarios

  • Hide sensitive fields: for example, hide cost or profit fields from ordinary employees
  • Isolate data scope: for example, allow sales personnel to view only the region they are responsible for
  • Hierarchical data control: for example, allow lower-level departments to view only their own department and sub-departments
  • Personalized data views: let different roles view different data dimensions

Prerequisites

  • Have permission to configure row and column permissions for the Dataset, typically as a Dataset owner or administrator
  • Understand the basic concepts of Datasets, see Terminology

Entry Points for Row and Column Permissions

Quick Reference

ActionPathDescription
Configure row and column permissionsData Preparation > Dataset > Select Dataset > Data Security > Row and Column PermissionsConfigure column permission and row permission rules
Use permission templatesAdmin Center > Resource Management > Data Security Templates > Create / Edit TemplateCreate reusable permission rules
Apply permission templatesData Preparation > Dataset > Data Security > Row and Column Permissions > Select TemplateApply a template to a Dataset

Detailed Steps

  1. On the Data Preparation > Dataset page, find the target Dataset and click its name to enter the detail page.
  2. On the detail page, click the Data Security > Row and Column Permissions tab to enter the configuration page.

Row and Column Permissions for Administrators and Dataset Owners

The system provides a dedicated switch that controls whether administrators and Dataset owners are affected by row and column permissions.

Switch location: at the bottom of the Row and Column Permissions page.

Switch StatusDescription
Off (default)Administrators and Dataset owners are not affected by row and column permissions and can view all data
OnAdministrators and Dataset owners are affected by row and column permissions and can view only data within the permitted scope
Note
  • This switch takes effect only when the administrator or Dataset owner is included in the Applicable Objects of the rule
  • The switch is off by default, which makes administration and troubleshooting easier

Column Permission Settings

Column permissions are used to control which field information users cannot view, such as restricting ordinary users from viewing a cost field.

Add a Column Permission

  1. On the Row and Column Permissions page, find the Set Column Permissions section and click Add.

  2. On the Column Permission Editor page, configure the column permission and click Confirm.

    • Object: choose the related users or user groups
    • Content: define which fields the selected objects are not allowed to view
    • Remark: add a note to make the permission easier to understand later

  3. On the Row and Column Permissions page, turn on the enable switch for the column permission to make it take effect.

Multi-User-Group Rule for Column Permissions

When a user belongs to multiple user groups and those groups have different column permissions, the fields the user cannot view are the intersection of the restricted fields from all groups.

Example

  • The Dataset has 5 fields: Product Name, Sales Quantity, Cost, Customer Phone, and Sales Region
  • User Group A restricts: Cost, Customer Phone
  • User Group B restricts: Customer Phone, Sales Region

Result: the user cannot view Customer Phone only, because it is the intersection of the restricted fields.

Row Permission Settings

Row permissions are used to control which records users can view, such as restricting East China sales personnel to view only East China region data.

Add a Row Permission

  1. On the Row and Column Permissions page, find the Set Row Permissions section and click Add.

  2. On the Row Permission Editor page, configure the following information:

    • Object: choose the related users or user groups
    • Content: define which row data the selected objects are allowed to view
    • Remark: add a note to help you understand or locate the permission rule later

Editing Modes for Row Permission Content

Row permission content supports two editing modes: Condition Mode and Free Mode.

Use the visual interface to configure filter conditions without writing code. This is suitable for most scenarios.

Supported condition types

Condition TypeApplicable ScenarioDescription
SelectionText fieldsDirectly select or paste condition values in bulk, such as province, category, or name
RangeNumeric or date fieldsSet greater-than, less-than, empty, and similar conditions. Dates support values such as Today, Yesterday, and Last 7 Days
ConditionText fieldsSet conditions such as equals, contains, or starts with
in (User Attribute)User-related fieldsThe field value must be included in a user attribute, such as name, employee ID, or department
in (Global Parameter)Dynamic parameter scenariosThe field value must be included in a global parameter value
Starts With (User Attribute)Hierarchical fieldsThe field value starts with a user attribute value, such as a department hierarchy
Starts With (Global Parameter)Hierarchical fieldsThe field value starts with a global parameter value

After configuration, click Query Statement to view the generated SQL.

Free Mode

Use custom SQL statements to define filter conditions. This is suitable for more complex scenarios.

*Example 1: allow only the East China sales group to view East China data.

[Region]="East China"

Note
  • Direct Query Dataset: use the SQL syntax of the corresponding database type, for example MySQL syntax for MySQL
  • Guan-Index Extracted Dataset: use SparkSQL syntax
  • If you are unsure of the Dataset type, check the Connection Type field on the Dataset detail page

Visibility Settings for Other Users' Data

After defining visible data for the selected objects, you can also configure what data other users can see:

Available options

OptionDescription
No Access for AllUsers not covered by the current row-permission rule cannot view any data
Full Access for AllUsers not covered by the current row-permission rule can view all data
Condition ModeUsers not covered by the current row-permission rule can view only data that meets the specified conditions
Free ModeUsers not covered by the current row-permission rule can view only data that meets the SQL conditions
Note
  • This setting controls what data users not covered by the current row-permission rule can see
  • Configure it carefully according to business requirements to avoid data leakage

Enable Row Permissions

After creating a row permission, turn on the Enable switch to make it take effect.

Multi-User-Group Rule for Row Permissions

When a user belongs to multiple user groups and those groups have different row permissions, the data the user can view is the union of the data allowed by all groups.

Example

For the City field:

  • User Group A allows: Shanghai, Hangzhou
  • User Group B allows: Shanghai, Beijing

Result: the user can view data from Shanghai, Hangzhou, and Beijing.

Summary of Permission Calculation Rules

Permission TypeRule Across Multiple User GroupsDescription
Column PermissionsIntersectionThe fields a user cannot view are the common restricted fields across all user groups
Row PermissionsUnionThe data a user can view is the combined data allowed by all user groups

Visual Explanation

Column Permissions - Intersection (stricter and stricter)

User Group A restricts: [Cost, Customer Phone]
User Group B restricts: [Customer Phone, Sales Region]
Intersection result: [Customer Phone] <- Only mutually restricted fields are hidden

Row Permissions - Union (broader and broader)

User Group A allows: [Shanghai, Hangzhou]
User Group B allows: [Shanghai, Beijing]
Union result: [Shanghai, Hangzhou, Beijing] <- All allowed values are visible

Memory Tips

Permission TypeEssenceMultiple Groups StackedResult
Column PermissionsRestriction (what cannot be seen)Multiple restrictions combinedIntersection (strictest)
Row PermissionsAllowance (what can be seen)Multiple allowances combinedUnion (broadest)

One-sentence memory tip

  • Column permissions are about restriction, so multiple restrictions take the intersection and become stricter
  • Row permissions are about allowance, so multiple allowances take the union and become broader

Notes

  • Permission priority: column permissions and row permissions are independent and take effect together in an AND relationship
  • Administrator permissions: whether administrators and Dataset owners are affected by row and column permissions is controlled by a switch, which is off by default
  • Data security templates: permission strategies can be applied quickly through Data Security Templates
  • Effective time: permission changes usually take effect immediately. If caching occurs, try refreshing the page
  • Inheritance: child Datasets or joined Datasets derived from the current Dataset do not automatically inherit row and column permissions and must be configured separately

FAQ

Permission Troubleshooting Checklist

When a user reports cannot see data or permissions do not take effect, check in the following order:

OrderCheck ItemWhere to CheckExpected Result
1Feature PermissionsAdmin Center > User Management > RolesThe user's role has Dataset view permission
2Resource PermissionsDataset > Permission ManagementThe user has User or Owner permission on the Dataset
3Row Permission Enable StatusDataset > Data Security > Row and Column PermissionsThe row-permission switch is enabled
4Row Permission Applicable ObjectsRow permission rule detailThe user appears in the Applicable Objects list
5Row Permission ConditionsRow permission rule detailThe conditions are correct and not too strict
6Column Permission SettingsColumn permission rule detailRequired fields are not hidden
7Administrator SwitchBottom of the Row and Column Permissions pageIf needed, the administrator switch is enabled

Troubleshooting tips

  • First confirm that the user can open the Dataset. This usually means feature permissions and resource permissions are normal.
  • Then confirm that the user can see data content. This means data permissions are working.
  • If the Dataset opens but shows no data, the problem is usually with row permissions.
  • If some fields are missing, the problem is usually with column permissions.

Row and Column Permissions Do Not Affect the Dataset Owner

Cause: the switch Administrators and Dataset Owners Are Affected by Row and Column Permissions is not enabled.

Solution

  1. Enter the Row and Column Permissions configuration page
  2. Find the switch at the bottom of the page
  3. Turn it on

For more details, see FAQ.

How Permissions Are Calculated When a User Belongs to Multiple User Groups

Rule

  • Column permissions: take the intersection of the restricted fields across groups
  • Row permissions: take the union of the allowed data across groups

See Summary of Permission Calculation Rules.

SQL Errors in Free Mode

Cause: the wrong syntax was used for the Dataset type.

Solution

  1. Confirm the Dataset type:
    • Check Connection Type on the Dataset detail page
    • Direct Query means a direct-query Dataset
    • Guan-Index means an extracted Dataset
  2. Use the correct SQL syntax:
    • Direct-query Datasets: use the syntax of the corresponding database, such as MySQL or Oracle
    • Guan-Index extracted Datasets: use SparkSQL syntax

Standard Users Cannot See Data After Permission Configuration

Check the following

  1. Confirm that the permission rule is enabled
  2. Confirm that the user is included in the rule's Applicable Objects
  3. Confirm that the row-permission conditions are correct and not overly restrictive
  4. Confirm that column permissions are not hiding fields required by the user

How to Apply the Same Permission to Multiple Datasets Quickly

Solution: use Data Security Templates.

  1. Create a data security template and define common permission rules
  2. Apply the template to multiple Datasets
  3. When the template is modified, all linked Dataset permissions are updated together

Terminology

Before using row and column permissions, it is recommended that you understand the following terms:

TermDefinition
DatasetThe basic unit for storing and managing data in Guandata BI, such as a database table or Excel file
Direct Query DatasetA Dataset that directly connects to an external database, queries data in real time, and uses the SQL syntax of that database
Guan-Index Extracted DatasetA Dataset that extracts data into Guandata BI internal storage and uses SparkSQL syntax
User GroupA collection of users used to manage user permissions in bulk
User AttributePredefined user information fields in the system, such as name, department, and employee ID
Global ParameterA parameter value that can be dynamically configured in the system and used to control permissions dynamically
IntersectionThe common part of multiple sets. For example, if Group A restricts fields 1 and 2, and Group B restricts fields 2 and 3, the intersection is field 2
UnionAll parts across multiple sets. For example, if Group A allows Shanghai and Hangzhou, and Group B allows Shanghai and Beijing, the union is Shanghai, Hangzhou, and Beijing