<?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 Create token for ServicePrincipal using java SDK in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/create-token-for-serviceprincipal-using-java-sdk/m-p/43486#M1203</link>
    <description>&lt;P&gt;Hi Team&lt;BR /&gt;I am looking into implementing a functionality which allows me to create a&amp;nbsp;ServicePrincipal and I want to create a personal token for this&amp;nbsp;ServicePrincipal using java sdk. While trying to do this I am getting this error ```com.databricks.sdk.core.DatabricksError: User ----- does not have permission to use tokens.&lt;BR /&gt;at com.databricks.sdk.core.error.ApiErrors.readErrorFromResponse(ApiErrors.java:48)```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find a way around this our anything on the documentation&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2023 15:12:00 GMT</pubDate>
    <dc:creator>shkelzeen</dc:creator>
    <dc:date>2023-09-04T15:12:00Z</dc:date>
    <item>
      <title>Create token for ServicePrincipal using java SDK</title>
      <link>https://community.databricks.com/t5/data-governance/create-token-for-serviceprincipal-using-java-sdk/m-p/43486#M1203</link>
      <description>&lt;P&gt;Hi Team&lt;BR /&gt;I am looking into implementing a functionality which allows me to create a&amp;nbsp;ServicePrincipal and I want to create a personal token for this&amp;nbsp;ServicePrincipal using java sdk. While trying to do this I am getting this error ```com.databricks.sdk.core.DatabricksError: User ----- does not have permission to use tokens.&lt;BR /&gt;at com.databricks.sdk.core.error.ApiErrors.readErrorFromResponse(ApiErrors.java:48)```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find a way around this our anything on the documentation&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 15:12:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/create-token-for-serviceprincipal-using-java-sdk/m-p/43486#M1203</guid>
      <dc:creator>shkelzeen</dc:creator>
      <dc:date>2023-09-04T15:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create token for ServicePrincipal using java SDK</title>
      <link>https://community.databricks.com/t5/data-governance/create-token-for-serviceprincipal-using-java-sdk/m-p/43833#M1215</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;Thank you for your response how would the databricks know for which&amp;nbsp;&lt;SPAN&gt;service principal&amp;nbsp; I want to grant permission?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 15:05:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/create-token-for-serviceprincipal-using-java-sdk/m-p/43833#M1215</guid>
      <dc:creator>shkelzeen</dc:creator>
      <dc:date>2023-09-06T15:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create token for ServicePrincipal using java SDK</title>
      <link>https://community.databricks.com/t5/data-governance/create-token-for-serviceprincipal-using-java-sdk/m-p/43847#M1217</link>
      <description>&lt;P&gt;This look like chatgpt answer. You are answering my question with a totally different answer which is not related anyhow with what I asked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I am creating&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;ServicePrincipal&lt;/PRE&gt;&lt;P&gt;programmaticly using the databricks java sdk and once I create the ServicePrincipal I want to create a token for this hanc the error. Based on your first answer I assumed there is a way to give&amp;nbsp; this ServicePrincipal permission to create token by calling an API but in the api call you shared you aren't sending the applicationId on name on the request henc my question and with the second answer you are telling me how to do that on the UI which I don't want to.&lt;/P&gt;&lt;P&gt;Now my question again can I give permission&amp;nbsp; to a&amp;nbsp;&lt;SPAN&gt;Service Principals to create have token using java SDK or the http api?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Sep 2023 16:15:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/create-token-for-serviceprincipal-using-java-sdk/m-p/43847#M1217</guid>
      <dc:creator>shkelzeen</dc:creator>
      <dc:date>2023-09-06T16:15:54Z</dc:date>
    </item>
  </channel>
</rss>

