dbTalk Databases Forums  

Dynamic Security MDX scenario

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


Discuss Dynamic Security MDX scenario in the microsoft.public.sqlserver.olap forum.



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

Default Dynamic Security MDX scenario - 11-04-2005 , 08:42 AM






Hi again,
I've been having some trouble implemente a Dynamic Security MDX
scenario.

I have a dimension [Red], that is a parent-child dimension. I've
created a member properties "Users" that contains the users separeted
by ";" (ex: ;u185733;v911868;u184785.

I've been trying the following MDX expression in the "Allowed Member"
box:

filter([Red].AllMembers,INSTR(1,[Red].CurrentMember.Properties("Users"),";"+
Mid(UserName,InStr(1,UserName,"\")+1) +";")>0)

As 'UserName' comes with the server name, i used
"Mid(UserName,InStr(1,UserName,"\")+1)" to separate the user (ex:
"BEST-DESTMRA\u185733" ---Mid(...)---> "u185733")

I get the following error: Error generated by the user - the dimension
"Red" does not contain any valid member. For more information....."


Emiliano D. Llera Do Campo
Telecom Argentina S.A.


Reply With Quote
  #2  
Old   
ellerado
 
Posts: n/a

Default Re: Dynamic Security MDX scenario - 11-04-2005 , 02:24 PM






I tried this and it worked:

filter([DimRed_vw].AllMembers,InStr(1,[DimRed_vw].CurrentMember.Properties("Users"),"u185733")>0)

,so i supose the error is in:

*** ";"*Mid(UserName,InStr(1,UserName,"\")+1) +";" ***

I'd really appreciate any help
Thanks :-)
Emiliano


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.