LLMs.txt directory

Column security rules

Column security rules (CSR) let you protect specific columns in a table and control who can access them, based on group membership or on user attributes. Unlike the existing column-level security model, CSR decouples security from sharing — you can share a table broadly while still restricting access to sensitive columns.

Column security rules is an opt-in feature. To enable it for your ThoughtSpot instance, contact ThoughtSpot Support.

When you mark a column as protected, only users who are granted access to that column by a rule can see it. All other users who have access to the table will see the remaining columns, but not the protected one.

For example, if a table has three columns — name, department, and salary — and you mark salary as protected:

  • Users in the HR group (granted access to salary) can see all three columns

  • All other users who have table access can see name and department only

  • No one loses access to the table itself — only the protected column is restricted

A protected column with no groups assigned is inaccessible to everyone except the table owner and administrators. Assign at least one group to make the column accessible to other users.

How CSR differs from column-level security

ThoughtSpot’s existing column-level security (CLS) ties sharing and security together — restricting a column requires you to individually share every other column on the same table with every user or group. This works but becomes difficult to manage at scale.

Column security rules take a different approach:

Column-level security (CLS) Column security rules (CSR)

How it works

Mark columns as protected and share other columns explicitly.

Mark columns as protected and assign groups to protected columns, or write a rule based on user attributes.

Sharing required

Table sharing is not required for business users. This is because they will use the Model. Table sharing is only required with COLUMN LEVEL SHARING because of the Strict Object Mode setting. This is not required for CSR. Table sharing is only required for those users that will manage these tables. That is, Data Analysts.

Table sharing is only required for business users if both Column Level Sharing and Column Security Rules is enabled. This is only required for those clients that are migrating to CSR.

Default if no rule is set

Column is accessible if the table is shared.

Protected column is inaccessible to all users except the owner and admins.

Where rules are managed

Column sharing panel.

Column Security tab on the table.

CLS and CSR coexist — enabling CSR does not remove or replace your existing CLS configuration.

Attribute-based rules

In addition to group-based rules, you can protect columns with attribute-based rules. An attribute-based rule is a true or false expression that ThoughtSpot evaluates for each user. If the expression is true for a user, that user can see the protected columns. Because the rule uses attributes that users already have, such as values assigned through formula variables, one rule can replace many groups.

Attribute-based rules must be enabled for your instance. To enable this feature, contact ThoughtSpot Support.

For example:

  • 'HR' in ts_var(department) gives access to users whose department variable includes HR.

  • 'Finance' in ts_groups gives access to members of the Finance group.

  • 'HR' in ts_var(department) and 'EMEA' in ts_var(region) gives access only to users who match both values.

Rules can use the following elements:

  • Operators: in, not in, and, or, =, !=, and not

  • Functions: ts_var() and isnull()

  • System variables: ts_groups and ts_username

  • Constant values, such as 'HR'

Put the value before the variable. For example, write 'HR' in ts_var(department), not ts_var(department) in 'HR'.

If a user has no value for a variable that a rule uses, the rule denies access to that user.

A rule that uses not or not in allows access for a user who has no value for the variable. To make sure users without a value are denied, write rules that grant access with in, rather than rules that exclude users.

Column security rules and publishing

When you publish a table from the Primary Org, attribute-based rules on the table are enforced in every Org the table is published to. ThoughtSpot evaluates each rule using the attributes of the user in that Org.

Group-based rules are not enforced in the Orgs that a table is published to, because groups belong to a single Org. When you create a group-based rule, the Column Security tab shows Secures columns in current org only. ThoughtSpot does not show a warning when you publish the table. To protect columns on tables that you publish, use attribute-based rules.

Administrators in an Org that a table is published to can add their own rules. These rules apply only in that Org.

Column protection in worksheets and models

When you mark a base table column as protected, that protection is automatically inherited by any worksheet, model, or view column that is derived from it. You do not need to configure CSR separately on derived objects.

For formula columns, if any of the underlying base columns is protected, the formula column is also marked as protected.

The Model will show a read-only representation of CSR rules that have been inherited from the tables.

Who can manage column security rules

Only table owners and administrators can create, edit, or delete column security rules on a table. Users with view-only access to the table cannot modify its security rules.

Limitations

  • Group-based rules apply to groups only. To control access based on user attributes, use an attribute-based rule.

  • CSR rules cannot be set directly on worksheet, model, or view columns — only on base table columns

  • Group-based rules are not enforced in the Orgs that a table is published to. Attribute-based rules are enforced.

  • Attribute-based rules can use only constant values, variables, ts_groups, and ts_username. They cannot reference columns in the table, and they do not mask values.

  • Each Org supports up to 100 distinct variables in attribute-based rules.

  • You cannot delete a formula variable that is used in an attribute-based rule.


ThoughtSpot TrainingThoughtSpot Training