# User Tag - Server Side Request Attribute

**URL:** <https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271>\
**Category:** Open Q&A\
**Tags:** user-sessions, request-attributes\
**Created:** [October 9, 2019, 8:41am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271 "2019-10-09T08:41:13Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 9, 2019, 8:41am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/1 "2019-10-09T08:41:13Z")

</div>

Dear All,

The request attribute works on the server-side to capture the User ID/Name but the same is not working for the user tagging.

1. Installed Dynatrace OneAgent (1.165.238)
2. Supported Dynatrace OneAgent (1.162)
3. No adaptive policy issue.

What could be the reason?

 ![22126-user-tag-req-attribute.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/3/6/36943106dea6a69671bab87d9538468f2f0befce.jpeg)

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![akshay\_misra](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@akshay\_misra](https://community.dynatrace.com/u/akshay_misra)\
**Post date:** [October 9, 2019, 9:44am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/2 "2019-10-09T09:44:23Z")

</div>

Please check if you have correctly mentioned where the attribute is stored, and steps are correctly configured.  
Also, please share screenshot of the configuration for review.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 9, 2019, 10:21am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/3 "2019-10-09T10:21:39Z")

</div>

Hello [@Akshay M.](https://answers.dynatrace.com/users/27425/view.html)

The configuration is done correctly and I can see the Users ID in the request attribute on the server-side.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [October 9, 2019, 12:46pm UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/4 "2019-10-09T12:46:16Z")

</div>

Hi Babar,

What version is your cluster?

As I can see on the [Preview link,](https://forms.office.com/Pages/ResponsePage.aspx?id=o-PrcDBbXUOdZ3cW10yhkPm9BaXUtyhJmJ5yF9WAGPhUNUFTR01DREZMRklXUUdKMFNQNDlHQVU5VS4u) this hit GA only in v 1.175.

Best regards,

Radu

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 9, 2019, 1:54pm UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/5 "2019-10-09T13:54:55Z")

</div>

Hello [@Radu S.](https://answers.dynatrace.com/users/5445/view.html)

Cluster Version 1.176.133.20190920-140938

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 9, 2019, 5:20pm UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/6 "2019-10-09T17:20:13Z")

</div>

Babar, do you see this request attribute when you drill down to pure path from user action?

Sebastian

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 10, 2019, 5:52am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/7 "2019-10-10T05:52:18Z")

</div>

Hello [@sebastian k.](https://answers.dynatrace.com/users/15061/view.html)

After reviewing the below screenshot, please correct me if I misunderstood your question.

 ![22138-1570687680105.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/b/3b2c556efe1852446894c0b84b696b13350d2b9a.png)

Regards,

Babar

 ![1570687575967.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/f/df311d8ab88f9baacbec4fa34abce9d4b6480c43.png)  
 ![1570686635560.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/643bbce2100ce919aa1ebb4914f4c093a2caae8f.png)

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 10, 2019, 7:36am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/8 "2019-10-10T07:36:07Z")

</div>

Hi I was thinking about missing purepath for some of user Session because of dynatrace purepath limit per minute. But in such case only some of sessions should stay untagged.

Sebastian

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 10, 2019, 7:43am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/9 "2019-10-10T07:43:50Z")

</div>

Hello [@sebastian k.](https://answers.dynatrace.com/users/15061/view.html)

How to rectify this situation?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [October 10, 2019, 7:48am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/10 "2019-10-10T07:48:55Z")

</div>

Thank you for the reply.  
On these PurePaths which have the User ID, can you do a backtrace all the way to the RUM Application?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 10, 2019, 8:05am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/11 "2019-10-10T08:05:08Z")

</div>

Wrong path 🙂 There has to be different issue.

Sebastian

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 10, 2019, 8:07am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/12 "2019-10-10T08:07:03Z")

</div>

Hello [@Radu S.](https://answers.dynatrace.com/users/5445/view.html)

Yes, tagged actions are reaching to the RUM application.

I can see the following information:

 ![22143-1570694696279.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/7/979ea40ccf23e992a7f31fecf9916e05857226c2.png)

Regards,

Babar

 ![1570694666410.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/df45052307d12e88ca485bf0e0bd1a50fd770a94.png)

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [October 10, 2019, 8:32am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/13 "2019-10-10T08:32:16Z")

</div>

Hi Babar,

That does not seem to go to a RUM-enabled application. Your backtrace has only one node (the service which you started the backtrace). Hence why you’re seeing “Requests to …” but not “Requests from …”. Also, the last node of the backtrace (which needs to be a RUM-enabled application) needs to show User Actions.

Only User Actions are mapped to a User Session. So the problem is that the PurePaths where you are collecting User ID are not actually directly associated with any User Action of a RUM-enabled application and so it’s impossible for us to use that attribute to tag sessions.

Here’s a visual example:

 ![22144-1570696329043.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e595eec4b5bc4b7f18db4ebb5d6fffb33d1f6ac8.png)

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 10, 2019, 8:49am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/14 "2019-10-10T08:49:23Z")

</div>

Hello [@Radu S.](https://answers.dynatrace.com/users/5445/view.html)

Is this related or our request attribute configuration on the Dynatrace or something related to application design?

Dynamic requests are tagged with the request attribute tag.

 ![22148-1570698451169.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/6/26e155495513354a522fbe51bc19eec47990e7b3.png)

How to make it work?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [October 10, 2019, 9:07am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/15 "2019-10-10T09:07:18Z")

</div>

Hi [@Babar Q.](https://answers.dynatrace.com/users/5357/view.html)

The request attribute is configured correctly, because we are capturing it. However I am unsure your application is monitored correctly.

You need to ensure the following:

- When you go to Applications, your application is listed there. This means OneAgent is correctly injecting the JS for RUM tracking and we are getting user sessions and user actions.
- From the Applications page, click on the application, then click the tile which says “Services” then click on “view service flow” from below:  
 ![22147-1570698230809.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a124c336493261b96ee2590a0e8022bc97211581.png)
- The request attribute you configured must be present on one of the services that appear in the service flow.

If any of these steps don’t work, you need to resolve it.

From what I can see, your backtrace didn’t lead to an Application. So that’s a good place to start understanding if you’re monitoring your application correctly.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 14, 2019, 6:25am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/16 "2019-10-14T06:25:36Z")

</div>

Hello [@Radu S.](https://answers.dynatrace.com/users/5445/view.html)

No services detected.

 ![22165-1571033888103.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0555ddbe1cca90d7a2d67b5c82040ea2271e359c.png)

I can see the request attributes (in the form of tag) in the dynamic requests.

 ![22167-1571034307124.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/f4aec89eabfcf53335e08f984e47856ef03dc8f8.png)

One more thing to share that till now we did not instrument the Web Servers which will be instrumented soon.

Regards,

Babar

 ![1571034276889.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/5/b55e4ef0c8a6679ff1aec1d2414954854e412912.png)

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [October 14, 2019, 8:36am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/17 "2019-10-14T08:36:37Z")

</div>

Then you’ve found your problem.

Unless Application is tied to Service which has Requests with the attribute, you cannot use that attribute to tag your sessions because we have no idea what sessions those requests belong to.

Possibly when you’re going to instrument the web servers, and the RUM injection will be done directly via OneAgent, then your attribute can be used for tagging sessions.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [October 22, 2019, 6:02am UTC](https://community.dynatrace.com/t/user-tag-server-side-request-attribute/22271/18 "2019-10-22T06:02:47Z")

</div>

Hello [@Radu S.](https://answers.dynatrace.com/users/5445/view.html)

I wanted to share with you that after instrumenting the web servers, the request attribute is working perfectly fine for the user tagging.

Regards,

Babar
