You are on page 1of 18

NextGen Data Warehouse

Security with SSAS

Date: 27 july 2022

Prepared By:

Smartera 3S Solutions and Systems


Security with (SSAS) using visual
studio

OVERVIEW
We need each user to access a specific dataset that other users can not access so we needed
to secure the datasource by roles using sql service analysis services (SSAS) and visual studio
tool.

Goals
1. Ability to make data masking using (dax , M language).
2. Ability to make row level security (hides tables , hide columns).
3. Ability to edit in the tables (remove columns , add columns , change values).

PREREQUISITES
1. Sql server analysis services.
2. Visual Studio.
3. Power bi desktop.
STEPS
1. Install SSAS (sql server analysis services).

first need to have Sql Server Data Tools installed on your server. After you have that installed, you
can open Sql Server 2016 installation Center.

Clicking that opens the following prompts. We want to add features to an existing database, so select
the top option.
Click the box to add to an existing instance, since we already have a Sql Server instance installed.

Select Analysis Services as shown below.


Click next.

Select
Tabular Mode, since that is the mode we want to install. You need to add users who have access to
manage the services, below I added the Administrator. There is also a Data Directories tab. You can
change where the files, logs, temp directories are located. I kept them the default, but you probably
want to change them on a production instance.
After clicking next, you get the summary screen and you are ready to install SSAS on your server.

In a couple minutes if all goes well, you will get the following success message.
If you check your services again, you will see that the SSAS services are now installed and running.

2. Install visual studio.


3. Install Microsoft Analysis Services Project Extension.

1.from extensions click on manage extensions.

2.search on Microsoft Analysis Services Project and install it.


4. Create a new project with Analysis Service Tublar Project.

5.

After Creation the project set Compatibility level to SQL Server 2019.
6. Import data
source from
the
database.

7. Load the needed tables.


8. Now you can secure that datasource by creating roles, adding new role with read
permissions or any permissions you need.
9. From tables and columns you can do row level security by hiding any columns or
tables you want.
10. Add members to that role.

11. You can edit tables using dax language from the formula bar.

12. You can use a query editor to edit tables and make data masking.

1. Right click on the table you want and select table properties.

2.on edit table properties click design then query editor will open.
3.click import after editing that table.

4.process the partitions then process the table to update the tublar model.

13. Deploy tublar model after editing tables and adding roles to secure the
datasource.
14. the deployment operation should appear without any errors like that.

15. Now you can access your new dataset with a specific user which has a specific
role from power bi desktop.

1.Set user credentials.


● From transform data click on Data Source settings.

● Click on edit permissions then click edit.


● Enter user credentials to login with in power bi desktop.

2.Click on Get data to get the secured Dataset from the tubular model.

3.select server analysis services database then click connect.


4.Enter the deployment server name and database name then select import mode and
click ok to get the model.

5.To know the deployment server name go to the tubular model select Solution Explorer
then right click on the model and click on properties.
6.the tubular model will appear with the data and you can load it or click on transform
data if data contains queries changes then apply the model.

7.now the user is authorized to view the secured dataset and he can use it and make
reports.

You might also like