<?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 Data Connection Permissions via API in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Data-Connection-Permissions-via-API/m-p/654351#M7561</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;today I was struggling a lot with data connections. My starting point was to have a workflow in a subscription and wanted to execute it through the Private Gallery API. It worked for me before so I was sure it should work, but unfortunately I received: "&lt;SPAN&gt;Unable to translate alias" what can mean basically anything. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I started to investigate and tried all possibilities to make it happen (I thought the subscription of the workflow itself would be sufficient as a permission for the connection). First I checked if the service account (who triggers the API) has all required permissions, but turns out he had all of them. Afterwards I wasn't sure how this works in general.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hours passed and finally I found the way it works. When the API is triggered the only user who needs permissions on the data connection is the owner of the executed workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I wrong with this or can I handle this differently?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my opinion it should check the permission of the subscription itself and not the owner of the workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you understand my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(The server version is currently 2019.4)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 14:40:51 GMT</pubDate>
    <dc:creator>maxksoll</dc:creator>
    <dc:date>2020-10-22T14:40:51Z</dc:date>
    <item>
      <title>Data Connection Permissions via API</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Data-Connection-Permissions-via-API/m-p/654351#M7561</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;today I was struggling a lot with data connections. My starting point was to have a workflow in a subscription and wanted to execute it through the Private Gallery API. It worked for me before so I was sure it should work, but unfortunately I received: "&lt;SPAN&gt;Unable to translate alias" what can mean basically anything. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I started to investigate and tried all possibilities to make it happen (I thought the subscription of the workflow itself would be sufficient as a permission for the connection). First I checked if the service account (who triggers the API) has all required permissions, but turns out he had all of them. Afterwards I wasn't sure how this works in general.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hours passed and finally I found the way it works. When the API is triggered the only user who needs permissions on the data connection is the owner of the executed workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I wrong with this or can I handle this differently?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my opinion it should check the permission of the subscription itself and not the owner of the workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you understand my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(The server version is currently 2019.4)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:40:51 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Data-Connection-Permissions-via-API/m-p/654351#M7561</guid>
      <dc:creator>maxksoll</dc:creator>
      <dc:date>2020-10-22T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Connection Permissions via API</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Data-Connection-Permissions-via-API/m-p/657851#M7601</link>
      <description>&lt;P&gt;From my understanding, you are correct.&amp;nbsp; Shared data connections from the Gallery are linked to the published_revision_author_id.&amp;nbsp; If the user that published the latest revision of a workflow still has those connections shared with him/her, then the alias should resolve properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having said that, it's worth noting that the actual integrated authentication to the data source the connection string references is tied to the run-as user (which may or may not be the published_revision_author) for that specific job.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 19:24:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Data-Connection-Permissions-via-API/m-p/657851#M7601</guid>
      <dc:creator>raychase</dc:creator>
      <dc:date>2020-10-28T19:24:33Z</dc:date>
    </item>
  </channel>
</rss>

