How can I run an SSRS report as the current Windows User?

pgunston

I have an SSRS report which will list information depending on which employee runs the report.

I want the information to be 100% unique to each employee therefore, I want the report to automatically determine who the employee is based on their windows login.

In SQL, I can do this by executing the following:

 SELECT HOST_NAME() AS HostName, SUSER_NAME() LoggedInUser

This returns the following data:

+--------------+--------------------+
|   HostName   |    LoggedInUser    |
+--------------+--------------------+
| MCC-ASUSN53S | MCCOSKERS\PGunston |
+--------------+--------------------+

The above works in SSRS too however, it returns details based on the SQL Server, NOT the machine which the report is being accessed from.

Is there a way to achieve what I am attempting?

Anthony Forloney

To retrieve the user accessing the report, you can use User!UserID variable from the User collection.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I run an SSRS report as the current Windows User?

From Dev

Filter SSRS report to current user

From Dev

Filter SSRS report to current user

From Dev

How can I print a Blank report in SSRS

From Dev

How can I get the run result status according to the current report node?

From Dev

How can I specify a Stored Procedure to be used in the SSRS Report Wizard?

From Dev

How can I compute and display a date range in an SSRS report field?

From Dev

SSRS: How can I accessing report parameters from custom assembly?

From Dev

how can I fix ssrs report design issue?

From Dev

How can I create an expression in an SSRS report similar to an Excel formula?

From Dev

How can I put a password onto my SSRS Dashboard Report?

From Dev

How can I compute and display a date range in an SSRS report field?

From Dev

How can I prevent the horizontal alienation of TextBoxes on generated report (SSRS)?

From Dev

How can I increase the number of years in SQL and in SSRS report?

From Dev

How can I supply report parameters to ancillary reports from a "base" SSRS report?

From Dev

How can I select what user account will run a Windows service (run as) from command-line?

From Dev

How Can I tell if the current user is Admin from Windows Command Line

From Dev

How can I determine the location of the current user's Documents folder from a Windows batch script?

From Dev

Can I run another batch file in the current batch file windows?

From Dev

Can I run another batch file in the current batch file windows?

From Dev

can I deploy a report to a report server (SSRS) without visual studio?

From Dev

How can I run a program as another user

From Dev

Crash report from a user. How can I solve this crash?

From Dev

How can I run a second user session from windows on my local screen (with Raspberry Pi)?

From Dev

How to get Current Month's Starting and End dates in SSRS report

From Dev

How can I run java on Windows?

From Dev

how can i run rouge Summarization on windows?

From Dev

How can I Run Programs on Windows Login

From Dev

How can I run a new process, and close the current program in Java?

Related Related

  1. 1

    How can I run an SSRS report as the current Windows User?

  2. 2

    Filter SSRS report to current user

  3. 3

    Filter SSRS report to current user

  4. 4

    How can I print a Blank report in SSRS

  5. 5

    How can I get the run result status according to the current report node?

  6. 6

    How can I specify a Stored Procedure to be used in the SSRS Report Wizard?

  7. 7

    How can I compute and display a date range in an SSRS report field?

  8. 8

    SSRS: How can I accessing report parameters from custom assembly?

  9. 9

    how can I fix ssrs report design issue?

  10. 10

    How can I create an expression in an SSRS report similar to an Excel formula?

  11. 11

    How can I put a password onto my SSRS Dashboard Report?

  12. 12

    How can I compute and display a date range in an SSRS report field?

  13. 13

    How can I prevent the horizontal alienation of TextBoxes on generated report (SSRS)?

  14. 14

    How can I increase the number of years in SQL and in SSRS report?

  15. 15

    How can I supply report parameters to ancillary reports from a "base" SSRS report?

  16. 16

    How can I select what user account will run a Windows service (run as) from command-line?

  17. 17

    How Can I tell if the current user is Admin from Windows Command Line

  18. 18

    How can I determine the location of the current user's Documents folder from a Windows batch script?

  19. 19

    Can I run another batch file in the current batch file windows?

  20. 20

    Can I run another batch file in the current batch file windows?

  21. 21

    can I deploy a report to a report server (SSRS) without visual studio?

  22. 22

    How can I run a program as another user

  23. 23

    Crash report from a user. How can I solve this crash?

  24. 24

    How can I run a second user session from windows on my local screen (with Raspberry Pi)?

  25. 25

    How to get Current Month's Starting and End dates in SSRS report

  26. 26

    How can I run java on Windows?

  27. 27

    how can i run rouge Summarization on windows?

  28. 28

    How can I Run Programs on Windows Login

  29. 29

    How can I run a new process, and close the current program in Java?

HotTag

Archive