all groups > sql server reporting services > july 2007 >
You're in the

sql server reporting services

group:

Urgent: How to filter data for each user


Urgent: How to filter data for each user MIB
7/31/2007 2:48:02 AM
sql server reporting services:
Thanks for your help.
We are using reporting services on a server (B), but the data are on an
another server (B). I have applied security for different type of report,
but i would like to know how could i for one report filter data for each user.
Example: I have a report on Sales USA, only people in the groupe SALES_USA
can access to the report, but when a rep of NY is opening the report i would
like to filter for this rep, on the same way for the rep of LA. So each rep
will only see data concerning his city.
RE: Urgent: How to filter data for each user Jimbo
7/31/2007 12:38:12 PM
Capture the user login, use that to lookup your own security table to
determine what they can/cannot see - use this data to filter your report.



[quoted text, click to view]
Re: Urgent: How to filter data for each user Bruce L-C [MVP]
7/31/2007 3:34:48 PM
There is a global variable for userid. In the expression builder you will
see it. It returns the domain\userid. Have a table that you have in your
join that used this value. Have a query parameter that you map to an
expression instead of to a report parameter. It will automatically create a
report parameter for you. In the dataset click on the ..., parameters tab
and map to the expression. Then go to layout, Report Menu, Report Parameters
and delete the unneeded report parameter. RS blurs query parameters and
report parameters but they are two different things. Being able to map a
query parameter to an expression is very useful.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: Urgent: How to filter data for each user Bruce L-C [MVP]
9/24/2007 12:00:00 AM
Sorry, I really don't know much about Report model. I suggest you repost
with that in your title. Also, if you don't get an answer here then I
suggest using the web forums. The other RS MVP hangs out there and it is the
only place MS people hang out.
http://forums.microsoft.com/msdn/showforum.aspx?forumid=82&siteid=1


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: Urgent: How to filter data for each user Ryan
9/24/2007 5:06:03 AM
Bruce,

I have done this in report desinger for my regular reports. now i am trying
to do something similar with my report model, but I can't get it to work
right. how do i apply an lookup table to the report model, so that it filters
out the data not assigned to that userid?

[quoted text, click to view]
AddThis Social Bookmark Button