Hello I have an Question to Dynamic Dimension Security in AS.
I have a following Problem. I want to Secure Dimension Members based on User Account and Datasource where the data comes from.
I have a Source Table which contains keys for all sources where the data comes from and I have User Table with Users. n-Users can belong to one Datasource. And I have Project Table, which contains a Datasource Key (1:1 relationship).
Now what I want is to create a Role to secure Project Dimensions Members depending on User and Datasource.
User "Paul" has acces to "Source A", now when the User "Paul" want to use the Project Dimension he should only see the Projects which come from "Source A".
User Dimension Table
User ID | Username
1 | Paul
2 | Peter
Datasource Dimension Table
Source ID | Source
A | Source A
B | Source B
UserID | SourceID
1 | A
2 | A
I have Project Dimension Table:
Project ID | Source
P1 | A
P2 | A
P3 | B
Based on this Data.
User "Paul" should only see Project "P1" and "P2".
Any Ideas how it is possible to realize this without to build Mapping Table between User and Project.
I created a User, Datasource and Proejct Dimension. Related the User and Datasource Dimension via UserDatasourceFact. Then I related the Datasource and Project Dimension via Datasource ID. And I tried this Query:
[Project Dim].[Project Title].Children on 0
Exists([Mandant Dim].[Mandant Name].CHILDREN,
[User Dim].[Username].&[Peter], "User Mandat Fact") on 0
FROM [Security Concept])
But it returns all Projects.
Thanks in advance.
I would appreciate your help.