Choosing a Reporting Services parameter value based on the currently logged in user

Posted by Robert Iver on Stack Overflow See other posts from Stack Overflow or by Robert Iver
Published on 2010-05-03T20:58:39Z Indexed on 2010/05/05 7:08 UTC
Read the original article Hit count: 199

Here's my situation. I have a Microsoft Reporting Services report that as a parameter takes a salesperson's name and shows them their sales across their territories blah blah blah.

But, salesperson A should not be able to choose and view salesperson B's data. So, my thought was to get the currently logged in user from Reporting Services, and then use that to populate the "salesperson" parameter.

Is there a way to get the currently logged in user through some hidden RS interface, or is there some other way of accomplishing my goal that I'm just not seeing? Any help would be GREAT, as the higher ups aren't too happen with my (apparent) lack of security right now.

© Stack Overflow or respective owner

Related posts about reporting-services

Related posts about howto