# Adding metadata to user session using RUM API

**URL:** <https://community.dynatrace.com/t/adding-metadata-to-user-session-using-rum-api/11729>\
**Category:** Real User Monitoring\
**Tags:** user-sessions\
**Created:** [May 2, 2018, 7:49am UTC](https://community.dynatrace.com/t/adding-metadata-to-user-session-using-rum-api/11729 "2018-05-02T07:49:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 2, 2018, 7:49am UTC](https://community.dynatrace.com/t/adding-metadata-to-user-session-using-rum-api/11729/1 "2018-05-02T07:49:58Z")

</div>

Are there any possibilities to add additional metadata into user session in Dynatrace or how to override the built-in ones? WIth the RUM API (dtrum) it seems just the identifyUser() is available and other methods are basically for identifying particular actions/xhrs.

I’m particularly interested in setting the IP address from within an application. In this case, browsers are running on Citrix servers and we would like to track the Citrix client IP (it’s available in the web app in JavaScript variable).

---

<div class="post-metadata">

**Author:** ![AlexanderSommer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alexandersommer/32/2501_2.png) [@AlexanderSommer](https://community.dynatrace.com/u/AlexanderSommer)\
**Post date:** [May 9, 2018, 1:54pm UTC](https://community.dynatrace.com/t/adding-metadata-to-user-session-using-rum-api/11729/2 "2018-05-09T13:54:47Z")

</div>

This is on the roadmap and will be soon available

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [April 14, 2021, 6:22am UTC](https://community.dynatrace.com/t/adding-metadata-to-user-session-using-rum-api/11729/3 "2021-04-14T06:22:30Z")

</div>

Can anyone give an update on how this has been implemented, and can be used?

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [December 1, 2021, 2:14pm UTC](https://community.dynatrace.com/t/adding-metadata-to-user-session-using-rum-api/11729/4 "2021-12-01T14:14:15Z")

</div>

Hi&nbsp;[@fstekelenburg](https://community.dynatrace.com/user/21639), I’ve reached to the source to provide you the first-hand informations. It’s currently possible to do with the API, however&nbsp;getting the IP with use of Javascript isn’t possible unless you make a request somewhere.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [December 2, 2021, 1:10pm UTC](https://community.dynatrace.com/t/adding-metadata-to-user-session-using-rum-api/11729/5 "2021-12-02T13:10:44Z")

</div>

Here is an idea that would be worth investigating. First and foremost, can you see the IP from the purepaths of the supported service that the user is interacting with? If so, you can create a request attribute to target that IP, then set the IP as the user tag on the user session. We have done this with many things that we wanted to track on users but Dynatrace

didnt provide an out of the box solution such as domain.
