<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Java method parameter as User Tag in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Java-method-parameter-as-User-Tag/m-p/245439#M32321</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to add a user tag to an application. The user tag would be a request attribute which is a java parameter. Here is my problem.&lt;/P&gt;
&lt;P&gt;I capture a string which is look like this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;loginId=shortname, mail=name.short@mailserver.com, givenName=&lt;FONT color="#FF9900"&gt;Short&lt;/FONT&gt;, name=&lt;FONT color="#FF9900"&gt;userID&lt;/FONT&gt;, sn=&lt;FONT color="#FF9900"&gt;Name&lt;/FONT&gt;, department=DepartmentName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I want the user tag looks like this: "&lt;FONT color="#FF9900"&gt;Name&lt;/FONT&gt; &lt;FONT color="#FF9900"&gt;Short&lt;/FONT&gt; (&lt;FONT color="#FF9900"&gt;loginID&lt;/FONT&gt;)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I guess I should use a regex expression but I don't know what.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Is it possible to do this way or is there any other way?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 07:17:57 GMT</pubDate>
    <dc:creator>istvan_safranek</dc:creator>
    <dc:date>2024-05-14T07:17:57Z</dc:date>
    <item>
      <title>Java method parameter as User Tag</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Java-method-parameter-as-User-Tag/m-p/245439#M32321</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to add a user tag to an application. The user tag would be a request attribute which is a java parameter. Here is my problem.&lt;/P&gt;
&lt;P&gt;I capture a string which is look like this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;loginId=shortname, mail=name.short@mailserver.com, givenName=&lt;FONT color="#FF9900"&gt;Short&lt;/FONT&gt;, name=&lt;FONT color="#FF9900"&gt;userID&lt;/FONT&gt;, sn=&lt;FONT color="#FF9900"&gt;Name&lt;/FONT&gt;, department=DepartmentName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I want the user tag looks like this: "&lt;FONT color="#FF9900"&gt;Name&lt;/FONT&gt; &lt;FONT color="#FF9900"&gt;Short&lt;/FONT&gt; (&lt;FONT color="#FF9900"&gt;loginID&lt;/FONT&gt;)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I guess I should use a regex expression but I don't know what.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Is it possible to do this way or is there any other way?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 07:17:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Java-method-parameter-as-User-Tag/m-p/245439#M32321</guid>
      <dc:creator>istvan_safranek</dc:creator>
      <dc:date>2024-05-14T07:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Java method parameter as User Tag</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Java-method-parameter-as-User-Tag/m-p/245466#M32326</link>
      <description>&lt;P&gt;Currently, it is not possible to concatenate multiple server-side request attribute to form a User Tag.&lt;/P&gt;&lt;P&gt;I'd recommend using the Dtrum JavaScript API, because it provides with more flexibility for those custom user tag use cases.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html#identifyUser" target="_blank"&gt;https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html#identifyUser&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'd need to call the&amp;nbsp;identifyUser() method in your frontend to send your custom user tag into the platform.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eric_Yu_1-1715635984967.png" style="width: 810px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19782iCDDDDFEAC53208AC/image-dimensions/810x243?v=v2" width="810" height="243" role="button" title="Eric_Yu_1-1715635984967.png" alt="Eric_Yu_1-1715635984967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 21:35:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Java-method-parameter-as-User-Tag/m-p/245466#M32326</guid>
      <dc:creator>Eric_Yu</dc:creator>
      <dc:date>2024-05-13T21:35:09Z</dc:date>
    </item>
  </channel>
</rss>

