dbTalk Databases Forums  

Dimension Security for multiple dimension

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Dimension Security for multiple dimension in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
muhu
 
Posts: n/a

Default Dimension Security for multiple dimension - 11-05-2004 , 01:39 AM






I'm trying to work with Dimension Security for multiple dimension, but
i have som problems that maybe someone can help with.

In my exmaple belove i have 2 dimensions.
The security should work as, if a user chose UK, he has only allowed
to se all things for UK (The X's), but if he chose to see KEYBOARD,
then he should see keyboard for everry country to.

MOUSE HARDDISK KEYBOARD MOTHERBOARD
USA XXXXXXXX
FRANCE XXXXXXXX
UK XXXX XXXXXXXX XXXXXXXX XXXXXXXXXXX
DENMARK XXXXXXXX

I have tryed to solve the problem like this, i have 2 cubes, one with
the 2 dimensions, and one permission cube. Then i make a virtual cube,
and give my user roles, to let him see the UK, and KEYBOARD. with my
MDX on the dimensions.

STRTOSET(
IIF(USERNAME="",
"{}",
SETTOSTR(
NONEMPTYCROSSJOIN(
[Geography].[Geography].MEMBERS,
{STRTOMEMBER("[USERS].[All USERS].[" + USERNAME + "]")},1)
)))

AND


STRTOSET(
IIF(USERNAME="",
"{}",
SETTOSTR(
NONEMPTYCROSSJOIN(
[Product].[Product].MEMBERS,
{STRTOMEMBER("[USERS].[All USERS].[" + USERNAME + "]")},1)
)))

But this will only allow me to see the keyboard for only UK, and that
was not the point. I can only see the intersection, but i wanted to
see the Union. Can anybody help with the problem.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.