Author Topic: Filtering According to Login  (Read 918 times)

Offline neilu

  • Full Member
  • ***
  • Posts: 13
  • Forum Citizenship: +1/-0
Filtering According to Login
« on: 12 Jan 2007 03:53:29 am »
I have a requirement from a client where they would like certain data filtered out of a report if a particular user is logged in, to prevent that user from seeing data of a certain category.  I'm pretty sure it's possible to do this by adding filters either to the report or to the data model but I'm not sure how to go about doing it.  Can anybody help?

Offline alex11343

  • Full Member
  • ***
  • Posts: 8
  • Forum Citizenship: +0/-0
Re: Filtering According to Login
« Reply #1 on: 16 Jan 2007 02:31:08 am »
I'm interested in this one too as I got a problem much alike.

if anyone could help us on this one, it'd be most appreciated.

Offline ajax6262

  • Full Member
  • ***
  • Posts: 8
  • Forum Citizenship: +1/-0
Re: Filtering According to Login
« Reply #2 on: 16 Jan 2007 07:05:04 am »
Are you looking at filtering for 1 particular user, and all other users can see everything, or setting up a report so that anyone who runs the report will only see "their" information?

Offline MDXpressor

  • Global Moderator
  • Community Leader
  • *****
  • Posts: 143
  • Forum Citizenship: +9/-1
Re: Filtering According to Login
« Reply #3 on: 17 Jan 2007 06:58:30 am »
In FM, when you create a security filter, you apply it to a query subject, and the add teh groups and roles to which the securty filter will be applied.  For each group or role, you can create filter expression that will be used to filter data for that group or role.  These filter expressions can incorporate macros, parameter maps and session parameters.

No, a proof is a proof. What kind of a proof? It's a proof. A proof is a proof, and when you have a good proof, it's because it's proven.

-Jean Chretien

Offline mrcool

  • Statesman
  • ******
  • Posts: 265
  • Forum Citizenship: +27/-28
Re: Filtering According to Login
« Reply #4 on: 19 Jan 2007 04:32:24 am »
Create some security table with one column for user name n 1  for level and last for name of the level.Now join this with the dimension on which the data needs to be filtered. U can also use the approach said by MDXpressor

Offline bdybldr

  • Global Moderator
  • Statesman
  • *****
  • Posts: 275
  • Forum Citizenship: +7/-1
Re: Filtering According to Login
« Reply #5 on: 22 Feb 2007 11:00:27 am »
#sq($account.defaultName)#

Offline angelicgibson

  • Associate
  • **
  • Posts: 1
  • Forum Citizenship: +0/-0
Re: Filtering According to Login
« Reply #6 on: 20 Mar 2007 10:26:12 am »
I am having a similiar issue against a Microsoft cube.  We are using Active Directory for security.  Has anyone tried using data security in Report Studio against a Microsoft cube.  I have added a new dimension/relationship to the cube by "user".    The dimension that the security is applied on has multiple levels.  Access can be granted on various levels.  I obtain the Active Directory ID from #sq($account.defaultName)#.  I match the "caption" value of the dimension user to the value returned from #sq($account.defaultName)#.  The report comes up empty....any ideas....