<?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 On-behalf-of token creation for service principals is not enabled for this workspace in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/64061#M32452</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I just wanted to create PAT for Databricks Service Principle but getting below code while hitting API or using CLI -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AjayPandey_0-1710845262519.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6696iEF286598265634C0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AjayPandey_0-1710845262519.png" alt="AjayPandey_0-1710845262519.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AjayPandey_1-1710845276557.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6697i58C3FACA31B73577/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AjayPandey_1-1710845276557.png" alt="AjayPandey_1-1710845276557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help me to create PAT for the same.&lt;/P&gt;&lt;P&gt;#dataengineering #databricks&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 10:49:13 GMT</pubDate>
    <dc:creator>Ajay-Pandey</dc:creator>
    <dc:date>2024-03-19T10:49:13Z</dc:date>
    <item>
      <title>On-behalf-of token creation for service principals is not enabled for this workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/64061#M32452</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I just wanted to create PAT for Databricks Service Principle but getting below code while hitting API or using CLI -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AjayPandey_0-1710845262519.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6696iEF286598265634C0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AjayPandey_0-1710845262519.png" alt="AjayPandey_0-1710845262519.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AjayPandey_1-1710845276557.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6697i58C3FACA31B73577/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AjayPandey_1-1710845276557.png" alt="AjayPandey_1-1710845276557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help me to create PAT for the same.&lt;/P&gt;&lt;P&gt;#dataengineering #databricks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 10:49:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/64061#M32452</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2024-03-19T10:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: On-behalf-of token creation for service principals is not enabled for this workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/64070#M32455</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;I have already referred this one but still having issue&lt;BR /&gt;I have created Service Account in Databricks and I am not using Azure Service Principle&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 12:25:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/64070#M32455</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2024-03-19T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: On-behalf-of token creation for service principals is not enabled for this workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/64085#M32460</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have given all the permissions (Admin) to Service Principle and still having the same issue.&lt;/P&gt;&lt;P&gt;Please find all the details below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AjayPandey_0-1710860431811.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6701i8009FD3C59CB081D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AjayPandey_0-1710860431811.png" alt="AjayPandey_0-1710860431811.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AjayPandey_1-1710860497811.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6702i1A8DBA47CAEABE3A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AjayPandey_1-1710860497811.png" alt="AjayPandey_1-1710860497811.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 15:04:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/64085#M32460</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2024-03-19T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: On-behalf-of token creation for service principals is not enabled for this workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/65741#M32909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Have you got any update on this ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 04:59:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/65741#M32909</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2024-04-08T04:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: On-behalf-of token creation for service principals is not enabled for this workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/91036#M38066</link>
      <description>&lt;P&gt;This only works if you are on AWS or GCP, no support for Azure &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the API documentation AWS -&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/tokenmanagement/createobotoken" target="_blank" rel="noopener"&gt;https://docs.databricks.com/api/workspace/tokenmanagement/createobotoken&lt;/A&gt;&lt;/P&gt;&lt;P&gt;No such documentation exists for Azure.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:11:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/91036#M38066</guid>
      <dc:creator>MorpheusGoGo</dc:creator>
      <dc:date>2024-09-19T10:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: On-behalf-of token creation for service principals is not enabled for this workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/116517#M45337</link>
      <description>&lt;P&gt;You can generate the token while logged in as the Service Principle via the Azure CLI in a Command Prompt window.&amp;nbsp;&amp;nbsp;To do so, make sure to install the Azure CLI and the Databricks CLI with it.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?pivots=winget" target="_blank"&gt;Install the Azure CLI for Windows | Microsoft Learn&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/install" target="_blank"&gt;Install or update the Databricks CLI - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I used the following commands in the Command Prompt window.&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;P&gt;First Command – Log in as the Service Principal using the secret value.&amp;nbsp; The secret value is created via &lt;A href="https://learn.microsoft.com/en-us/entra/identity-platform/howto-create-service-principal-portal#option-3-create-a-new-client-secret" target="_blank"&gt;https://learn.microsoft.com/en-us/entra/identity-platform/howto-create-service-principal-portal#option-3-create-a-new-client-secret&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;az login --service-principal -t &amp;lt;tenant id&amp;gt; -u &amp;lt;client id&amp;gt; -p &amp;lt;secret value&amp;gt; --allow-no-subscriptions&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Second Command while logged in as the Service Principal&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;databricks tokens create --lifetime-seconds 15780096 --comment &amp;lt;service principle name&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 20:43:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-token-creation-for-service-principals-is-not/m-p/116517#M45337</guid>
      <dc:creator>JackB</dc:creator>
      <dc:date>2025-04-24T20:43:49Z</dc:date>
    </item>
  </channel>
</rss>

