<?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: Unable to generate account level PAT for service principle in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/unable-to-generate-account-level-pat-for-service-principle/m-p/69090#M7263</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; Thank you for the details.&lt;/P&gt;&lt;P&gt;1. The command that you have shared takes token in the header, but the command that I am trying to use is to generate the token for a service principle&lt;/P&gt;&lt;P&gt;2. The command shared by you is not taking a client id and client secret. so how can we generate it for a service principle&lt;/P&gt;&lt;P&gt;3. we can generated tokens at the account level and workspace level. The command shared by you is at workspace level not at the account level.&lt;/P&gt;&lt;P&gt;Please help me if you know how to generate PAT for a service principle at the account level.&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 13:43:11 GMT</pubDate>
    <dc:creator>NarenderKumar</dc:creator>
    <dc:date>2024-05-15T13:43:11Z</dc:date>
    <item>
      <title>Unable to generate account level PAT for service principle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-generate-account-level-pat-for-service-principle/m-p/69001#M7261</link>
      <description>&lt;P&gt;I am trying to generate PAT for a service principle.&lt;BR /&gt;I am following the documentation as shown below:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html#create-token-in-account" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html#create-token-in-account&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NarenderKumar_0-1715695724302.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7570i31011437FCBDFE06/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="NarenderKumar_0-1715695724302.png" alt="NarenderKumar_0-1715695724302.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have prepared the below curl command:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NarenderKumar_1-1715695859890.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7571i73AB5FEBC0612921/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="NarenderKumar_1-1715695859890.png" alt="NarenderKumar_1-1715695859890.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am getting below error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NarenderKumar_2-1715695895738.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7572i2284A33873F2C4EC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="NarenderKumar_2-1715695895738.png" alt="NarenderKumar_2-1715695895738.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help me to create the curl command that can generate the PAT&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 14:11:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-generate-account-level-pat-for-service-principle/m-p/69001#M7261</guid>
      <dc:creator>NarenderKumar</dc:creator>
      <dc:date>2024-05-14T14:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to generate account level PAT for service principle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-generate-account-level-pat-for-service-principle/m-p/69090#M7263</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; Thank you for the details.&lt;/P&gt;&lt;P&gt;1. The command that you have shared takes token in the header, but the command that I am trying to use is to generate the token for a service principle&lt;/P&gt;&lt;P&gt;2. The command shared by you is not taking a client id and client secret. so how can we generate it for a service principle&lt;/P&gt;&lt;P&gt;3. we can generated tokens at the account level and workspace level. The command shared by you is at workspace level not at the account level.&lt;/P&gt;&lt;P&gt;Please help me if you know how to generate PAT for a service principle at the account level.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 13:43:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-generate-account-level-pat-for-service-principle/m-p/69090#M7263</guid>
      <dc:creator>NarenderKumar</dc:creator>
      <dc:date>2024-05-15T13:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to generate account level PAT for service principle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-generate-account-level-pat-for-service-principle/m-p/69904#M7264</link>
      <description>&lt;P&gt;I was able to generate the workspace level token using the databricks cli.&lt;/P&gt;&lt;P&gt;I set the following details in the databricks cli profile(.databrickscfg) file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;host&amp;nbsp; = https://myworksapce.azuredatabricks.net/&amp;nbsp;&lt;/P&gt;&lt;P&gt;account_id = (my db account id)&lt;/P&gt;&lt;P&gt;client_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (my sp client id)&lt;/P&gt;&lt;P&gt;client_secret = (generated from databricks worksapce)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After setting these, I ran the following command and generated the token:&lt;/P&gt;&lt;P&gt;databricks tokens create --lifetime-seconds 157680000&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 06:58:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-generate-account-level-pat-for-service-principle/m-p/69904#M7264</guid>
      <dc:creator>NarenderKumar</dc:creator>
      <dc:date>2024-05-20T06:58:12Z</dc:date>
    </item>
  </channel>
</rss>

