Object Level Security Tabular: support dynamic assignment like RLS with DAX?

AConfusedUser 66 Reputation points
2021-03-12T21:24:00.183+00:00

Is there any way to handle Object Level Security dynamically like how Row Level Security can be handled via DAX statements?

Currently in our tabular models we do row level security by doing a DAX lookup against a table that lists the username and the RLS filter.

We want to utilize OLS by dynamically checking a user table that would list what objects or roles they would be allowed to see.

I do not see anyway to assign OLS dynamically as the users must be manually assigned to the roles they are in.

Is there no way to assign users to roles dynamically?

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,247 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lukas Yu -MSFT 5,816 Reputation points
    2021-03-15T09:01:37.397+00:00

    Hi,

    OLS (Table or Column level) security is set in the JSON-based metadata in the Model.bim. It is not going to check any table content like RLS does.

    From this base, and the users role is defined with TMSL in the model.bim file we could not dynamically change it like in a table for RLS. So what required is not supported for now.

    Unfortunately I could not find a workaround here, maybe other experts could give better insight on this issue.

    Regards,
    Lukas

    1 person found this answer helpful.

  2. Carter, Winston 11 Reputation points
    2022-03-17T16:14:37.017+00:00

    It's been about a year since OLS was introduced, is there any update on allowing it to be dynamically implemented as with RLS?

    0 comments No comments