dbTalk Databases Forums  

[Akshai / Mosha] Dynamic Security Issue

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


Discuss [Akshai / Mosha] Dynamic Security Issue in the microsoft.public.sqlserver.olap forum.



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

Default [Akshai / Mosha] Dynamic Security Issue - 04-20-2006 , 08:16 AM






Hi Akshai / Deepak / Mosha ,

I am currently setting up Dynamic security using the Filter in the
Allowed Members for User. I want to restrict the user (who is currently
logged and i can get his user name as username) to be only able to see
the memebrs which are below his/her HIERARCHY.

The MDXes are :
-----------------------------------------------------
Allowed Members :
{
Filter([Sales Representative].[DFM].Members, [Sales
Representative].CurrentMember.Properties("login name") =
userName)
}

-----------------------------------------------------
Denied Members :
Except({Ascendants([Sales
Representative].[DFM].Members.item(0))},{[Sales Representative].[All
Sales Representative]} )

====================================
If i define only the Allowed MDX (i didn't defined any MDX for Denied
Members), the parent members of the current hierarchy are shown, but i
dont want to see the parent members, just directly browse to the member
which is allowed.


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: [Akshai / Mosha] Dynamic Security Issue - 04-22-2006 , 10:03 PM






Not sure which version of Analysis Services you're using - with AS 2000,
you could define the Top Level for custom rules as [Sales
Representative].[DFM]:

http://msdn.microsoft.com/library/de.../en-us/olapdma
d/agsecurity_2b95.asp
Quote:
Level Selections

For each dimension you can specify a range of dimension levels that can
be accessed by selecting one or both of the following:

Top level

Indicates the topmost level that can be accessed. Levels above the top
level cannot be accessed. By default, top level is the dimension's
highest level.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.