Best way to implement security for measures in SSAS


hi ssas gurus,

 

i have requirement need implement security on measures such visible set of users , not accessible set of users. now, have ssrs reports defined on top of these measures accessible both set of users. want reports displayed such measures should visible users access invisible or n/a should displayed when other set of users access reports. best way go forward this?


cheers, jason 

just implemented solution , works!!! lot raymond , craig!

the solution hybrid of raymond's , idea. steps took are

1) had dimension called product. added dummy attribute key of product dimension, , called rolesecurity. value of attribute 1 keys , attribute hidden in product dimension.

2) needed have security access on measure gross margin original. in calculated members of cube, made following calculation

create member currentcube.[measures].[gross margin] as 

iif(iserror([product].[rolesecurity].[1]),0,[measures].[gross margin original]);

3) have 2 roles called restrictedusers , powerusers. powerusers have access measures, no need there. restrictedusers role, select dimension data tab , use "deselect members" rolesecurity attribute. implies users of role not have access of values of attribute.

once deployed, if user of restricteduser role tries view grossmargin measure, see 0 result, while powerusers see actual value. in reports, 0 can used to conditionally display message "not authorized".

drawback

1) if user becomes aware of hidden measure called gross margin original, able query out

i love hear further drawbacks experts, guess maybe make new thread it.


cheers, jason p.s. : please click 'mark answer' button if post solves problem! :)


SQL Server  >  SQL Server Analysis Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........