# Get user who executes report

**URL:** <https://forum.reportserver.net/t/get-user-who-executes-report/1847>\
**Category:** ReportServer (EN)\
**Created:** [May 13, 2025, 2:44pm UTC](https://forum.reportserver.net/t/get-user-who-executes-report/1847 "2025-05-13T14:44:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sabina](https://forum.reportserver.net/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@Sabina](https://forum.reportserver.net/u/Sabina)\
**Post date:** [May 13, 2025, 2:44pm UTC](https://forum.reportserver.net/t/get-user-who-executes-report/1847/1 "2025-05-13T14:44:52Z")

</div>

Hi,

Is there a way to pass to a Jasper report the details of the ReportServer user executing the report?

I searched the docs and the forum and found nothing on this.

Regards,  
Sabina

---

<div class="post-metadata">

**Author:** ![IF\_Eduardo](https://forum.reportserver.net/letter_avatar_proxy/v4/letter/i/94ad74/32.png) [@IF\_Eduardo](https://forum.reportserver.net/u/IF_Eduardo)\
**Post date:** [May 14, 2025, 10:04am UTC](https://forum.reportserver.net/t/get-user-who-executes-report/1847/2 "2025-05-14T10:04:19Z")

</div>

Hi Sabina,

you can access your user in Jasper by creating a parameter (only in Jasper!) like this:

```auto
<parameter name="_RS_USER_FIRSTNAME" class="java.lang.Object"/>
```

You can use of course String for text.

Then you can print it in your jasper like any other parameter:

```auto
<textField>
   <reportElement x="138" y="70" width="138" height="60" uuid="88a0b516-0d6a-48b8-8ae8-b479b35a948b"/>
   <textFieldExpression><![CDATA[$P{_RS_USER_FIRSTNAME}]]></textFieldExpression>
</textField>
```

The user fields that are accessible are:

- \_RS\_USER\_FIRSTNAME
- \_RS\_USER\_LASTNAME
- \_RS\_USER\_USERNAME
- \_RS\_USER\_TITLE
- \_RS\_USER\_EMAIL
- \_RS\_USER\_ID

Regards,  
Eduardo

---

<div class="post-metadata">

**Author:** ![Sabina](https://forum.reportserver.net/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@Sabina](https://forum.reportserver.net/u/Sabina)\
**Post date:** [May 14, 2025, 3:00pm UTC](https://forum.reportserver.net/t/get-user-who-executes-report/1847/3 "2025-05-14T15:00:30Z")

</div>

Thank you, it was very helpful.
