<?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: CPM Plugin 'setLastPromptToParameter' command in Privilege Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/cpm-plugin-setlastprompttoparameter-command/m-p/1361918#M3478</link>
    <description>&lt;P&gt;There's an example of usage in the Cisco Router cpm plugin &lt;/P&gt;&lt;P&gt;​https://community.cyberark.com/marketplace/s/#a3550000000EiAUAA0-a3950000000jjSpAAI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 May 2025 08:28:34 GMT</pubDate>
    <dc:creator>Mal</dc:creator>
    <dc:date>2025-05-01T08:28:34Z</dc:date>
    <item>
      <title>CPM Plugin 'setLastPromptToParameter' command</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/cpm-plugin-setlastprompttoparameter-command/m-p/1361917#M3477</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone used the setLastPromptToParameter command in a custom CPM plugin?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently building a plugin that needs to capture the output of one command and use it as input for another, as part of a password change workflow. Here's the flow I'm trying to implement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;After a successful login, I run the following command to generate a password hash: request password-hash username &amp;lt;username&amp;gt; password &amp;lt;pmpass&amp;gt; templatename &amp;lt;template&amp;gt;. This command outputs the hash to the terminal.&lt;/LI&gt;&lt;LI&gt;I then enter configuration mode with: configure&lt;/LI&gt;&lt;LI&gt;Finally, I need to run this command, passing in the previously generated hash: set template &amp;lt;template&amp;gt; config mgt-config users &amp;lt;username&amp;gt; phash &amp;lt;created-passphash&amp;gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found &lt;A alt="https://docs.cyberark.com/pam-self-hosted/latest/en/content/sdk/tpc-process.htm#Script" href="https://docs.cyberark.com/pam-self-hosted/latest/en/content/sdk/tpc-process.htm#Script" target="_blank"&gt;documentation&lt;/A&gt; that mentions setLastPromptToParameter, which seems like it could capture the hash and store it for later use. However, there are no examples provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone successfully used this command in a plugin and could share an example or some guidance? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve been stuck on this for a few days and would really appreciate any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 01:35:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/cpm-plugin-setlastprompttoparameter-command/m-p/1361917#M3477</guid>
      <dc:creator>DavidCabra</dc:creator>
      <dc:date>2025-05-01T01:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: CPM Plugin 'setLastPromptToParameter' command</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/cpm-plugin-setlastprompttoparameter-command/m-p/1361918#M3478</link>
      <description>&lt;P&gt;There's an example of usage in the Cisco Router cpm plugin &lt;/P&gt;&lt;P&gt;​https://community.cyberark.com/marketplace/s/#a3550000000EiAUAA0-a3950000000jjSpAAI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 08:28:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/cpm-plugin-setlastprompttoparameter-command/m-p/1361918#M3478</guid>
      <dc:creator>Mal</dc:creator>
      <dc:date>2025-05-01T08:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: CPM Plugin 'setLastPromptToParameter' command</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/cpm-plugin-setlastprompttoparameter-command/m-p/1361919#M3479</link>
      <description>&lt;P&gt;Yes, I am using that plugin as a reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 18:33:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/cpm-plugin-setlastprompttoparameter-command/m-p/1361919#M3479</guid>
      <dc:creator>DavidCabra</dc:creator>
      <dc:date>2025-05-04T18:33:25Z</dc:date>
    </item>
  </channel>
</rss>

