1) Open SSMS and connect to "Adventure Works DW" database. Right click on "Roles".
2) It will open new wizard and wizard will have different pages to enter details. In general page, provide name in "Role name" area.(For example, Australia) SSAS provides us three level of database permission.
Please select appropriate option.
3) Membership: Add users for the new role.
user can be added by specifying domain and user name. It can be local or network user. 4) Data Sources: By default, access will be none. Data source access will give user access to read/write access to source data for cube. if you want to give only cube data access to user then no need to specify any access. 5) Cube:We are creating this role for giving access of "Adventure works" cube so give read access for only the same cube. Other cube in same database "Mined Customers" should have none in access column.
6) Cell: Cell security can be enabled in this page. Specify measure group you want to see for this role. In our example, Amit user should see only "Reseller Sales Amount" for Australia country. Put following code in "Allow reading of cube content":
([Geography].[Geography].[Country].&[Australia] AND [Measures].Currentmember IS [Measures].[Reseller Sales Amount])
7) Dimensions: By default, user gets read access for all the dimension in database. You can additionally provide Read/Write access, read definition and process dimension access. 8) Dimension Data: This is most significant page in role creation wizard. There are two drop downs to select particular dimension and dimension attribute. Once you specify both then you can select particular set of members for the access. For our example, select dimension as "Geography" and attribute as "country" and then "Australia" as member.
Once you specify this in basic tab and change the tab to advance tab, you will see MDX on denied member set. Analysis services put all other non selected members in denied set.
{[Geography].[Country].&[Canada], [Geography].[Country].&[France], [Geography].[Country].&[Germany], [Geography].[Country].&[United Kingdom], [Geography].[Country].&[United States]}
9) Mining Structure: Access related to mining structures can be provided here. No need to specify anything for our example. 10) Click OK and new role "Australia" will be created.
Humm,it's nice but why we cannot hide the dimension itself.Is there any solution for hiding the dimension itself in the upcoming SSAS version features by Microsoft ?.
Thanks,
Anil Maharjan
Hi Anil,
We dont want to restrict complete dimension to user. We just want to give access/restrict of few members of the same dimension. For example, Australia country member for above article.
Hello amit ,
Well in this post i know that you are just hiding the member of particular dimension but in my case i need to hide the dimension itself for two different user with in a same cube.(i.e say for A user only 10 dimension access and for B user 15 dimension access ) i came to know we can hide the member's only not the dimension itself .
so anyone have idea about this topic .?..
Anil Mahajan.
As far as my knowledge, we can not hide complete dimension from cube. At dimension level, we have only two access permission: read and read/write. I will try to find out workaround. Will update you if i get something.