<?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 Re: Dynatrace Synthetic Monitoring credentials using PAM api in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163209#M728</link>
    <description>&lt;P&gt;You have two options.&lt;/P&gt;
&lt;P&gt;1. You can store the user name via &lt;A href="https://www.dynatrace.com/support/help/shortlink/id_brower-clickpath-events#anchor-javascript-event-api" target="_self"&gt;api.setValue&lt;/A&gt;&amp;nbsp;and use it in a subsequent keystroke events via placeholders for example {username}.&lt;/P&gt;
&lt;P&gt;2. You set the value of the input directly via JavaScript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;api.startAsyncSyntheticEvent();
fetch('https://randomuser.me/api/').then((resp) =&amp;gt; resp.json()).then(function(data) {

    // Option 1 - Store username via api.setValue to use in subsequent events
    api.setValue("username", data.results[0].name.first);

    // Option 2 - Set input value directly via JavaScript
    document.getElementById('username').value = data.results[0].name.first;

    api.finish();
}).catch(function(error) {
    api.fail('Fetch request to randomuser.me failed');
});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the placeholder in a subsequent keystroke event&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Philipp_Kastner_0-1616397056637.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/377iE0D584414BA2A7DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Philipp_Kastner_0-1616397056637.png" alt="Philipp_Kastner_0-1616397056637.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Philipp&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 07:12:20 GMT</pubDate>
    <dc:creator>Philipp_Kastner</dc:creator>
    <dc:date>2021-03-22T07:12:20Z</dc:date>
    <item>
      <title>Dynatrace Synthetic Monitoring credentials using PAM api</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/162857#M717</link>
      <description>&lt;P&gt;Is there any way for Synthetic Monitoring transactions to call the CA PAM api to get a user account/credentials?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our security team is pushing for a "check in/check out" process for certain service accounts. If we could call the PAM api to get the account and credentials this would satisfy that need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 12:20:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/162857#M717</guid>
      <dc:creator>jordan_rose</dc:creator>
      <dc:date>2021-04-13T12:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Synthetic Monitoring credentials using PAM api</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163138#M722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/26207"&gt;@jordan_rose&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;are you using browser monitors? If yes, you can use a &lt;A href="https://www.dynatrace.com/support/help/shortlink/id_brower-clickpath-events#javascript-" target="_self"&gt;JavaScript event&lt;/A&gt; to execute simple API calls.&lt;BR /&gt;Similar to the example shown in the help&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Philipp_Kastner_0-1616101294887.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/364iC4F146CEE17B8358/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Philipp_Kastner_0-1616101294887.png" alt="Philipp_Kastner_0-1616101294887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 21:02:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163138#M722</guid>
      <dc:creator>Philipp_Kastner</dc:creator>
      <dc:date>2021-03-18T21:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Synthetic Monitoring credentials using PAM api</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163140#M723</link>
      <description>&lt;P&gt;Hi Philipp, thanks for the reply and this is very helpful. Once I retrieve a user name how can I set it to a variable and input that into a form field. I looked through the doc and didn't see this and I haven't had any need to edit the scripts of the recorded click path yet so forgive me if I'm missing it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this much appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 22:11:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163140#M723</guid>
      <dc:creator>jordan_rose</dc:creator>
      <dc:date>2021-03-18T22:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Synthetic Monitoring credentials using PAM api</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163209#M728</link>
      <description>&lt;P&gt;You have two options.&lt;/P&gt;
&lt;P&gt;1. You can store the user name via &lt;A href="https://www.dynatrace.com/support/help/shortlink/id_brower-clickpath-events#anchor-javascript-event-api" target="_self"&gt;api.setValue&lt;/A&gt;&amp;nbsp;and use it in a subsequent keystroke events via placeholders for example {username}.&lt;/P&gt;
&lt;P&gt;2. You set the value of the input directly via JavaScript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;api.startAsyncSyntheticEvent();
fetch('https://randomuser.me/api/').then((resp) =&amp;gt; resp.json()).then(function(data) {

    // Option 1 - Store username via api.setValue to use in subsequent events
    api.setValue("username", data.results[0].name.first);

    // Option 2 - Set input value directly via JavaScript
    document.getElementById('username').value = data.results[0].name.first;

    api.finish();
}).catch(function(error) {
    api.fail('Fetch request to randomuser.me failed');
});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the placeholder in a subsequent keystroke event&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Philipp_Kastner_0-1616397056637.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/377iE0D584414BA2A7DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Philipp_Kastner_0-1616397056637.png" alt="Philipp_Kastner_0-1616397056637.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 07:12:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163209#M728</guid>
      <dc:creator>Philipp_Kastner</dc:creator>
      <dc:date>2021-03-22T07:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Synthetic Monitoring credentials using PAM api</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163568#M735</link>
      <description>&lt;P&gt;Phillip, this is awesome, Thank you so much for replying with this info. I will do some testing to try to get this working....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 17:15:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Dynatrace-Synthetic-Monitoring-credentials-using-PAM-api/m-p/163568#M735</guid>
      <dc:creator>jordan_rose</dc:creator>
      <dc:date>2021-03-29T17:15:49Z</dc:date>
    </item>
  </channel>
</rss>

