<?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: Accessing the credential vault from a workflow in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225021#M175</link>
    <description>&lt;P&gt;Hi Michal_zawislak,&lt;BR /&gt;How's the current process working? We utilize API calls within our workflow scripts, and are interested in have a finer level access control and using Dynatrace credential vault for security concerns.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 02:36:46 GMT</pubDate>
    <dc:creator>duke</dc:creator>
    <dc:date>2023-10-11T02:36:46Z</dc:date>
    <item>
      <title>Accessing the credential vault from a workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/207874#M172</link>
      <description>&lt;P&gt;When I pass an&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Authorization&lt;/FONT&gt; header in an "HTTP Request" workflow action using the credential vault format that can be used with HTTP monitors, I get HTTP 401 errors:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Accept": "application/json; charset=utf-8",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Content-Type": "application/json; charset=utf-8",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Authorization": "Api-Token {CREDENTIALS_VAULT-54B131CE41C87603|token}"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;If I hard-code the API token itself in the workflow's&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Authorization&lt;/FONT&gt; header instead, it works fine:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Accept": "application/json; charset=utf-8",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Content-Type": "application/json; charset=utf-8",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Authorization": "Api-Token dt0c01.GNLBY51QNGTC9TVHRNUH3U2Y.3IYAIBF5L2QTRMVG3A4B2LHULQLUMK32A4EJ12567VIEHK4PNVWLNJQXUAPGUBGI"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The credential vault entity ID being used is valid, and the API token being referenced has the correct scope. I'm working with the&amp;nbsp;/synthetic/executions/batch API in this case, but I expect the issue applies to other use cases as well.&lt;/P&gt;
&lt;P&gt;Is there a way to use the credential vault in a workflow, the way you can with HTTP monitors? Or will this be possible in the future? I do not want to have to hard-code API tokens into workflows.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The credential vault and token values shown above are not real, BTW.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 12:25:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/207874#M172</guid>
      <dc:creator>ScottD</dc:creator>
      <dc:date>2025-07-23T12:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the credential vault from a workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/207896#M173</link>
      <description>&lt;P&gt;Hi ScottD,&lt;/P&gt;
&lt;P&gt;Unfortunately, there's no way to access vault credentials (or any settings) in the `HTTP Request` action. However, there is a plan to add support for it soon.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 07:34:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/207896#M173</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2023-03-24T07:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the credential vault from a workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/212076#M174</link>
      <description>&lt;P&gt;Is this possible yet? I have the same question as it pertains to Notebooks; I'm trying to set up a Dynatrace API call in a Notebook code section. It works, but only if I hard-code the token.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 16:45:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/212076#M174</guid>
      <dc:creator>ScottD</dc:creator>
      <dc:date>2023-05-12T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the credential vault from a workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225021#M175</link>
      <description>&lt;P&gt;Hi Michal_zawislak,&lt;BR /&gt;How's the current process working? We utilize API calls within our workflow scripts, and are interested in have a finer level access control and using Dynatrace credential vault for security concerns.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 02:36:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225021#M175</guid>
      <dc:creator>duke</dc:creator>
      <dc:date>2023-10-11T02:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the credential vault from a workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225031#M176</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/60221"&gt;@duke&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;We're working on the possibility of using the credential vault in the "HTTP Request" action as we speak.&lt;/P&gt;&lt;P&gt;I'm not sure, but if by "workflow scripts" you mean running "Run Javascript" actions, could you please try using the &lt;A href="https://developer.dynatrace.com/reference/sdks/client-classic-environment-v2/#credentialvaultclient" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;@dynatrace-sdk/client-classic-environment-v2&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;SDK?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please let me know if that answers your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:36:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225031#M176</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2023-10-11T06:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the credential vault from a workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225052#M177</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57046"&gt;@michal_zawislak&lt;/a&gt;, thanks that works. Appreciate for the prompt response. However found it's working on Workflow but not the Notebooks, wondering what's the diff between those two apps? And is there a way to perform it in Notebooks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 08:07:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225052#M177</guid>
      <dc:creator>duke</dc:creator>
      <dc:date>2023-10-11T08:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the credential vault from a workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225162#M178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/60221"&gt;@duke&lt;/a&gt;,&amp;nbsp;I'm glad it works!&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a few differences between those two apps, but at this point, it's hard to tell which one plays a role here.&amp;nbsp;Could you please share an error you're getting when running your script in Notebooks? It would help to narrow down the root cause.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 06:33:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Accessing-the-credential-vault-from-a-workflow/m-p/225162#M178</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2023-10-12T06:33:09Z</dc:date>
    </item>
  </channel>
</rss>

