Skip to content

Security on the data#

Empowerment Center protects data in two directions: universes decide which rows each user sees and the access privileges of dimensions and metrics decide which columns they see. This page explains both for whoever designs the permissions. How data privileges and universes are created in the editor is explained in Metadata administration.

Before you start#

  • To create data privileges, assign them to dimensions and metrics and define universes: Metadata administration.
  • To give those privileges to users, through their roles: User administration.

Both rules apply equally on every path: workbooks and their documents, the portal, subscriptions and alerts, bookmarks, embedding, the query API and the MCP. Nothing has to be configured separately for each one.

Rows and columns a user sees Sample invoice table: the universe “Zona Norte” lets only the rows of the Norte zone be seen and the privilege “Datos confidenciales”, which the user does not have, hides the column Margen; what comercial.norte sees is the combination of both. Universe “Zona Norte”: rows seen Privilege “Datos confidenciales”: column not seen Zona Customer Importe neto Margen Norte Distribuciones Cantábrico 12 450 2180 Este Levante Suministros 8920 1340 Norte Talleres Ebro 5310 960 Sur Almacenes Guadalquivir 15 780 3020 Norte Comercial Bierzo 7640 1410 Este Ferretería Mediterránea 4260 720 What comercial.norte sees
Rows and columns a user sees Sample invoice table: the universe “Zona Norte” lets only the rows of the Norte zone be seen and the privilege “Datos confidenciales”, which the user does not have, hides the column Margen; what comercial.norte sees is the combination of both. Universe “Zona Norte”: rows seen Privilege “Datos confidenciales”: column not seen Zona Customer Importe neto Margen Norte Distribuciones Cantábrico 12 450 2180 Este Levante Suministros 8920 1340 Norte Talleres Ebro 5310 960 Sur Almacenes Guadalquivir 15 780 3020 Norte Comercial Bierzo 7640 1410 Este Ferretería Mediterránea 4260 720 What comercial.norte sees
Rows and columns a user sees View full size View full size

Universes: which rows each user sees#

A universe associates a condition and a privilege with a fact table: whoever has that privilege only sees the rows of the table that meet the condition. The condition is written in the engine's SQL, without WHERE, on the table's columns (“the customer's area is North”). Universes belong to each connection.

Rules#

  1. A universe restricts whoever has its privilege. Whoever has none of the privileges with a universe on a table sees all its rows.
  2. A user's universes add up. With two privileges that have a universe on the same table, the user sees the rows that meet either of the two conditions.
  3. They propagate towards the detail. The universe of a master table also limits the tables that depend on it through the metadata's relationships, even if the query does not use the master: if a sales rep only sees their customers, they also only see those customers' invoices.
  4. They also apply when writing. A form only modifies or deletes records the user can see, and does not let them create a record outside their universes or leave one outside them.
  5. System administration does not bypass them. An administrator sees the rows their data privileges allow, like any other user.

Rules 1 and 2 have a consequence worth keeping in mind when designing: giving a privilege with a universe restricts, but giving a second one widens, and removing the last privilege with a universe on a table opens all its rows.

Example#

In the demo, each sales area has its privilege (“Zona Norte”, “Zona Este”…) with universes on the tables of customers, invoices, incidents, salespeople and targets:

User Area privileges Sees
comercial.norte Zona Norte Only the customers, invoices and salespeople of the North area
jefe.noreste Zona Norte and Zona Este Those of both areas
direccion None All
The Ventas por zona workbook opened by comercial.norte, with only the data of the North areaThe Ventas por zona workbook opened by comercial.norte, with only the data of the North area
The Ventas por zona workbook opened by comercial.norte, with only the data of the North area

Design the universes#

  • Create a privilege for each “slice” of data assigned to someone (an area, a branch, a group company) and give it a universe on each table that has to be limited.
  • When a detail table already depends on a master limited by the metadata, it does not need its own universe: it propagates. Check that the relationships exist.
  • Test each universe with a user who only has that data privilege (and the function ones).
  • Keep rule 1 in mind with new users: if someone receives no area privilege, they see all areas.

Warning

A privilege used by a universe cannot be deleted: ECenter prevents it. If you remove the universe first, whoever has the privilege will see all the rows of that table. Make those changes knowing whom they affect.

Column-level security: which dimensions and metrics they see#

Each dimension and each metric has an access privilege. By default it is No level defined, which almost every user has; to protect one, whoever designs the metadata gives it another (“Confidential data”).

Rules#

  • A dimension or a metric is seen if the user has its access privilege.
  • A calculated metric (a formula on other metrics) is seen if the user has its privilege and sees all the metrics it uses.
  • A level of a hierarchy that is seen while the level above is hidden appears as a root.
  • What the user does not see is neither queried nor sent to them: it does not appear in the trees to choose from, in the data, in the document's information or in the SQL.
  • System administration does not, by being so, see what is protected with a data privilege.

What a user sees in a document that uses something they do not see#

A document saved by another person may use a metric or a dimension the user does not see. ECenter does not fail: it calculates it without it and warns about it.

Document What is removed It stops working if
Cube and listing The dimensions of the axes and the hidden metrics, with their columns No metric (cube) or dimension (listing) is left
Chart The hidden metrics and the series that use them; drill-down stops at the first hidden step Its values dimension is hidden or no metric is left
Map The themes that use something hidden Never: the map of layers remains
Form The hidden fields No field is left

Under the document header the notice “This document is shown without 2 metrics you do not have access to.” appears. It always says how many, never which: the names of what is protected are not revealed. In a portal block, a badge says how many items are missing; in a subscription, “2 columns hidden by your permissions”.

The Margen por zona cube opened by analista, without the margin metrics and with the notice of what is hiddenThe Margen por zona cube opened by analista, without the margin metrics and with the notice of what is hidden
The Margen por zona cube opened by analista, without the margin metrics and with the notice of what is hidden

If the document stops working for that user, or if its section's segmentation uses a dimension they do not see, it is not calculated for them: the document says “The document is based on data you do not have access to” or “The section's segmentation uses 1 dimension you do not have access to”. Those failures carry the code COLUMNS_HIDDEN.

Read-only#

Whatever uses something the user does not see is read-only for them: they can view it, but not modify it. When trying to save such a document or segmentation, ECenter rejects it (“… uses data you do not have access to: you can view it, but not change it”; code HIDDEN_COLUMNS_NOT_EDITABLE), and the modify buttons appear disabled with the reason “It uses data you do not have access to”. The rest of the workbook (other sections, other documents, the name) they can change.

In a form only the design is read-only: the data the user sees can still be edited, and a column they do not see is never written.

Requests that name something hidden#

A request that explicitly asks for something the user does not see (from the query API, the MCP, a recalculation with another definition, a value for an alert…) is rejected with a 403 and the code COLUMNS_HIDDEN (“The request uses 1 metric that you do not have access to”), with the identifiers it sent and never the names. That way what is protected cannot be found out by trying requests. Each rejection is recorded in the audit.

The portal and kept data#

  • Publishing freezes what whoever publishes sees: if they do not see something, it is published without it.
  • Whoever opens a published document sees it without the columns they do not see, even if whoever published it saw them. The frozen rows are those of whoever published; dynamic documents are calculated with the universes of whoever opens them.
  • The kept data of a document is only received by whoever has exactly the same privileges as whoever calculated it. Everyone else receives a calculation of their own.

Deleting a privilege opens nothing#

When a data privilege is deleted, nothing it protected is left open (see Roles and privileges):

What used the privilege What happens
Access to dimensions, metrics and lists It moves to Metadata administration: only whoever administers the metadata sees it, and will give it another privilege.
Editing of tables and dimensions It moves to the generic editing privileges.
Editing the values of an auxiliary table Nobody can do it.
Workbooks, portal pages and external data They are closed to whoever does not administer them.
Universes They prevent deleting it.

Warnings when designing the metadata#

  • The metadata editor warns, without preventing saving, when a metric calculates with columns protected with another privilege: whoever sees the metric could deduce something about those columns.
  • Before changing the privilege of a dimension or a metric, check with the editor's “Who uses…?” which documents use it: whoever stops seeing it will see them without it.

See also#