Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

How to get right value of global @UserId parameter for SSRS reports

$
0
0

Hi,

I have a 2012 asp.net web application and one of an aspx web for page contains an aspx.net report viewer control.  That report viewer control will work with remote SQL Server 2012 SSRS reports.

Each user will login the web application and will have a user identity (user name) as .net forms authentication gives to him or her.  However, on SSRS reports, the global @UserId parameter is shown with a value that differs from real web user name I expect.   Instead, the value of @UserId is shown as "IIS APPPOOL\<my web application IIS pool name>", and this issue happens regardless of who logs in my web site.

How can I set/code the @UserId parameter from my aspx page code behind so it will show correct user-login names (got from asp.net Forms Authentication Cookie) on SSRS reports?

Thank you in advance.


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>