<?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 How do you run a query as the owner but use a parameter as a viewer in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-do-you-run-a-query-as-the-owner-but-use-a-parameter-as-a/m-p/24303#M16894</link>
    <description>&lt;P&gt;I have a query that is hitting a table I have access too. Granting access to everyone is not an option. I am using this query in a SQL Dashboard. One of the where clause conditions uses a parameter populated by another query. I want this parameter query to run as the viewer when I share the dashboard to limit what options are presented based on who the viewer is. But its not working that way. It is running it as the owner, ie me, as all options are being shown in the parameter despite having that query saved as run as the viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this functionally possible? Or will the parameter query always inherit the permissions from the query calling it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 06:03:47 GMT</pubDate>
    <dc:creator>ncouture</dc:creator>
    <dc:date>2022-11-02T06:03:47Z</dc:date>
    <item>
      <title>How do you run a query as the owner but use a parameter as a viewer</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-you-run-a-query-as-the-owner-but-use-a-parameter-as-a/m-p/24303#M16894</link>
      <description>&lt;P&gt;I have a query that is hitting a table I have access too. Granting access to everyone is not an option. I am using this query in a SQL Dashboard. One of the where clause conditions uses a parameter populated by another query. I want this parameter query to run as the viewer when I share the dashboard to limit what options are presented based on who the viewer is. But its not working that way. It is running it as the owner, ie me, as all options are being shown in the parameter despite having that query saved as run as the viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this functionally possible? Or will the parameter query always inherit the permissions from the query calling it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 06:03:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-you-run-a-query-as-the-owner-but-use-a-parameter-as-a/m-p/24303#M16894</guid>
      <dc:creator>ncouture</dc:creator>
      <dc:date>2022-11-02T06:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you run a query as the owner but use a parameter as a viewer</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-you-run-a-query-as-the-owner-but-use-a-parameter-as-a/m-p/24304#M16895</link>
      <description>&lt;P&gt;It is not possible to do what I want. Somewhat seems like a security flaw but what ever&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 21:44:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-you-run-a-query-as-the-owner-but-use-a-parameter-as-a/m-p/24304#M16895</guid>
      <dc:creator>ncouture</dc:creator>
      <dc:date>2022-11-03T21:44:32Z</dc:date>
    </item>
  </channel>
</rss>

