<?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: What are adhoc functions in workflows? in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248434#M1615</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you have to set "Dynatrace apps with access" when selecting the AppEngine scope. By default it is set to "all applications".&lt;/P&gt;&lt;P&gt;While this does not have an immediate implication on your Workflow and the ad-hoc function used, I would still recommend to set it to "Workflows" for two reasons:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It's easier identifiable where you use the secrets afterwards&lt;/LI&gt;&lt;LI&gt;By setting it to "All applications" you are theoretically giving every app access to your secret (while, of course, still adhering to the "Owner access only" or "Users with access" configuration)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 11:09:44 GMT</pubDate>
    <dc:creator>christian_kreuz</dc:creator>
    <dc:date>2024-06-17T11:09:44Z</dc:date>
    <item>
      <title>What are adhoc functions in workflows?</title>
      <link>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248220#M1604</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting confused by below options, I assume, reading the documentation&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You add a code section in your Notebook and add custom code, which we refer to as an "Ad-hoc function.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is in workflows also a task with JS code? And does below mean I have enabled "ad hoc" for workflows and not for notebooks.&lt;/P&gt;&lt;P&gt;And for now I assume ad hoc function are the only way to connect to the vault?&lt;/P&gt;&lt;P&gt;And I hope the user is still validated to have access?&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="henk_stobbe_0-1718254350156.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20522i85E02EC38212A4B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="henk_stobbe_0-1718254350156.png" alt="henk_stobbe_0-1718254350156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 05:09:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248220#M1604</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2024-06-13T05:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: What are adhoc functions in workflows?</title>
      <link>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248421#M1612</link>
      <description>&lt;P&gt;Hi! Ad-hoc function is a very generic term for describing "a function that is written ad-hoc" - vs. a function that is part of an (existing) App.&lt;/P&gt;&lt;P&gt;In Notebooks you implicitly create an Ad-hoc function by writing Code in a Code-tile. In Workflows, this is the "Run JavaScript" action.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11427"&gt;@henk_stobbe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;And for now I assume ad hoc function are the only way to connect to the vault?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the future, a deeper integration between Vault and "some" Workflow Action is planned. For now, the "Run JavaScript" action is the only way to access secrets stored in Vault.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;And I hope the user is still validated to have access?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you restrict the access in Vault to certain users, only those users can access the secret. In Workflows, the user is whoever is set as the &lt;A href="https://docs.dynatrace.com/docs/platform-modules/automations/workflows/security#workflow-actor" target="_self"&gt;actor of a Workflow&lt;/A&gt; (not necessarily the user that clicks "Run").&lt;/P&gt;&lt;P&gt;Based on your screenshot, you seem to have already performed the first step and selected &lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/general-information/credential-vault-for-synthetic-monitors#appengine-scope" target="_self"&gt;AppEngine as a scope&lt;/A&gt;. In addition, you allowed access without an app context (for ad-hoc functions like the Run JavaScript action).&lt;/P&gt;&lt;P&gt;You can furthermore enable "Owner access only" below, or specify a list of "Users with access".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 09:24:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248421#M1612</guid>
      <dc:creator>christian_kreuz</dc:creator>
      <dc:date>2024-06-17T09:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: What are adhoc functions in workflows?</title>
      <link>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248431#M1614</link>
      <description>&lt;P&gt;Hello Christian,&lt;/P&gt;&lt;P&gt;Thanks again for your long and detailed answer. One small extra question from my side.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="henk_stobbe_0-1718618335195.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20574iC3E32283A540D4A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="henk_stobbe_0-1718618335195.png" alt="henk_stobbe_0-1718618335195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So if I understand correctly, above selection has no real implication at this moment?&lt;/P&gt;&lt;P&gt;And the ad hoc function also runs in the actor context, who needs vault access.&lt;/P&gt;&lt;P&gt;If both are yes, then I got it!&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 10:05:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248431#M1614</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2024-06-17T10:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: What are adhoc functions in workflows?</title>
      <link>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248434#M1615</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you have to set "Dynatrace apps with access" when selecting the AppEngine scope. By default it is set to "all applications".&lt;/P&gt;&lt;P&gt;While this does not have an immediate implication on your Workflow and the ad-hoc function used, I would still recommend to set it to "Workflows" for two reasons:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It's easier identifiable where you use the secrets afterwards&lt;/LI&gt;&lt;LI&gt;By setting it to "All applications" you are theoretically giving every app access to your secret (while, of course, still adhering to the "Owner access only" or "Users with access" configuration)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 11:09:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/What-are-adhoc-functions-in-workflows/m-p/248434#M1615</guid>
      <dc:creator>christian_kreuz</dc:creator>
      <dc:date>2024-06-17T11:09:44Z</dc:date>
    </item>
  </channel>
</rss>

