How to prevent access to SSAS? "analyze in excel" feature can bypass security

ovonemty 56 Reputation points
2022-12-28T10:10:48.807+00:00

I have a typical fact table with dimensions Project, Profit Center, etc

In a report, I have a table visual that shows individual numbers; and another table shows the department numbers…

It looks something like this:

![274529-image.png][2]

(Left: personal numbers. Right: department numbers)

My goal is that Tim shouldn’t be able to see someone else’s number, but he definitely can (and should) see the aggregated numbers for his department.

I realized that someone accessing from PowerBI or excel can connect to the model and play with the tables, pick another name and see someone else’s number, therefore I have hidden most tables...

But now, I just realized, someone with access can connect from Visual Studio to the SSAS:
274530-image.png

The person can open the .bim, unhide all tables, and with the “analyze from excel” option in VS see any numbers…

Is there any way to avoid/prevent this?

More info:

My model:
274477-image.png

(Project table has columns Lead1,Lead2,Lead3,Lead4,Lead5 and Lead6… Engagement Role is just an unpivot of this).

On my left visual I have:

274562-image.png
(triggering a more restrictive access).

My RLS:
274468-image.png

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,344 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alexei Stoyanovsky 3,416 Reputation points
    2022-12-29T06:06:12.257+00:00

    It's not tabular model security if it can be bypassed by connecting an unrestricted client application, excel or otherwise. Note that it requires administrator permission to the model for such bypass to happen at all.

    0 comments No comments

  2. Anonymous
    2022-12-29T08:34:23.927+00:00

    Hi @ovonemty

    Maybe you can try creating roles and giving them the appropriate permissions to manage them.

    You can refer to this link to try it.manage-roles-by-using-ssms-ssas-tabular

    Best regards,
    Percy Tang

    ----------

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.