<?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 Run a notebook as a different user or role in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/run-a-notebook-as-a-different-user-or-role/m-p/102724#M41211</link>
    <description>&lt;P&gt;Outside of running jobs with different users, is there any way for me to run a notebook (or even better a cell within a notebook) as either a different user or a specific role that is not my user default?&lt;/P&gt;&lt;P&gt;I'm trying to find an easy way to test data masking functions with something like this:&lt;/P&gt;&lt;P&gt;set user or rule to be one without elevated privileges;&lt;BR /&gt;select SSN from table;&lt;BR /&gt;If SSN = '********' then pass the test;&lt;BR /&gt;------&lt;BR /&gt;set user or rule to be one with elevated privileges;&lt;BR /&gt;select SSN from table;&lt;BR /&gt;If SSN = '123456789' then pass the test;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2024 19:40:20 GMT</pubDate>
    <dc:creator>pdiamond</dc:creator>
    <dc:date>2024-12-19T19:40:20Z</dc:date>
    <item>
      <title>Run a notebook as a different user or role</title>
      <link>https://community.databricks.com/t5/data-engineering/run-a-notebook-as-a-different-user-or-role/m-p/102724#M41211</link>
      <description>&lt;P&gt;Outside of running jobs with different users, is there any way for me to run a notebook (or even better a cell within a notebook) as either a different user or a specific role that is not my user default?&lt;/P&gt;&lt;P&gt;I'm trying to find an easy way to test data masking functions with something like this:&lt;/P&gt;&lt;P&gt;set user or rule to be one without elevated privileges;&lt;BR /&gt;select SSN from table;&lt;BR /&gt;If SSN = '********' then pass the test;&lt;BR /&gt;------&lt;BR /&gt;set user or rule to be one with elevated privileges;&lt;BR /&gt;select SSN from table;&lt;BR /&gt;If SSN = '123456789' then pass the test;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 19:40:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-a-notebook-as-a-different-user-or-role/m-p/102724#M41211</guid>
      <dc:creator>pdiamond</dc:creator>
      <dc:date>2024-12-19T19:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Run a notebook as a different user or role</title>
      <link>https://community.databricks.com/t5/data-engineering/run-a-notebook-as-a-different-user-or-role/m-p/102726#M41213</link>
      <description>&lt;P&gt;Unfortunately there is no direct way to run a notebook using additional principal, only option is to set up a notebook job task and on the Run As specify the principal that will run the job that can be a user or a Service Principal.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 19:44:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-a-notebook-as-a-different-user-or-role/m-p/102726#M41213</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-12-19T19:44:15Z</dc:date>
    </item>
  </channel>
</rss>

