Skip to content

Commit 2008ae4

Browse files
committed
docs: Elaborate on member level cube-view caveat
1 parent 86cd74d commit 2008ae4

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docs/content/product/auth/data-access-policies.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,15 @@ dimension in your query.
240240

241241
</WarningBox>
242242

243-
_When querying a view,_ data masking follows the same pattern as row-level
244-
security: masking rules from both the view and relevant cubes are applied.
243+
<WarningBox>
244+
245+
Unlike [member-level access policies][ref-dap-mls], which are **not** inherited
246+
from cubes when querying through views, data masking rules **are** applied from
247+
both the view and the relevant cubes. If you define masking on both a cube and a
248+
view that uses that cube, the masking will be applied twice. To avoid unexpected
249+
results, define masking rules on either the cube or the view, but not both.
250+
251+
</WarningBox>
245252

246253
For more details on available parameters, check out the
247254
[`member_masking` reference][ref-ref-dap-masking].

docs/content/product/auth/member-level-security.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ Defining whether users have access to [cubes][ref-cubes] and [views][ref-views]
1010
similar to defining access to database tables; defining whether they have access
1111
to dimensions and measures — to columns.
1212

13+
<WarningBox>
14+
15+
Just like in many SQL databases where table-level column policies are not
16+
inherited by views, member-level access policies defined on cubes are **not**
17+
applied when querying through views. Only the member-level policies defined on
18+
the view itself will take effect. Make sure to define access policies on your
19+
views directly.
20+
21+
</WarningBox>
22+
1323
__By default, all cubes, views, and their members are *public*,__ meaning that they
1424
can be accessed by any users and they are also visible during data model introspection.
1525

0 commit comments

Comments
 (0)