<?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: OAuth API for service user in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/120013#M3395</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/165414"&gt;@andreapeterson&lt;/a&gt;&amp;nbsp;isn't it the API you are looking for?&lt;BR /&gt;&lt;A href="https://docs.databricks.com/api/azure/account/serviceprincipalsecrets/create" target="_blank"&gt;https://docs.databricks.com/api/azure/account/serviceprincipalsecrets/create&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is an account-level API, but, counterintuitively, when we create service principals in the workspace, they propagate into account behind the scene! If you &lt;A href="https://docs.databricks.com/api/azure/account/accountserviceprincipals/create" target="_blank" rel="noopener"&gt;create&lt;/A&gt; an account-level SP right away, it will not be added into any workspace, but can be added later using workspace-level &lt;A href="https://docs.databricks.com/api/azure/workspace/serviceprincipals/create" target="_blank" rel="noopener"&gt;create&lt;/A&gt; method. It is pretty confusing, because when we do that in the UI, these details are hidden from us. At least this is how it works in my Azure environment. It took me a while to realize that.&lt;/P&gt;&lt;P&gt;To summarize, in your case you need to try to create OAuth secret using the account-level API I gave, even though you created it in the workspace. Hopefully you have permissions to call account API in your org.&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 00:38:11 GMT</pubDate>
    <dc:creator>vr</dc:creator>
    <dc:date>2025-05-23T00:38:11Z</dc:date>
    <item>
      <title>OAuth API for service user</title>
      <link>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/119901#M3386</link>
      <description>&lt;P&gt;Is there a way to programmatically create an OAuth secret for for a workspace service principal via API/SDK? As of now, the only way I can see doing this is through UI&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 18:26:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/119901#M3386</guid>
      <dc:creator>andreapeterson</dc:creator>
      <dc:date>2025-05-21T18:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth API for service user</title>
      <link>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/119924#M3391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/165414"&gt;@andreapeterson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Currently, there isn't support for creating OAuth secrets through the API, only through the UI in the admin console. You can create 'on behalf of' tokens through the API for service principals, but not an OAuth secret at the moment:&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/tokenmanagement/createobotoken" target="_blank"&gt;https://docs.databricks.com/api/workspace/tokenmanagement/createobotoken&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 22:06:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/119924#M3391</guid>
      <dc:creator>Shua42</dc:creator>
      <dc:date>2025-05-21T22:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth API for service user</title>
      <link>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/119988#M3392</link>
      <description>&lt;P&gt;Hi Shua,&lt;BR /&gt;Thanks for responding. What is the difference between a token and OAuth? I only see OAuth in UI.&amp;nbsp;&lt;BR /&gt;Also, is adding OAuth secrets for a service principal via api on the road map for Databricks?&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 16:12:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/119988#M3392</guid>
      <dc:creator>andreapeterson</dc:creator>
      <dc:date>2025-05-22T16:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth API for service user</title>
      <link>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/120013#M3395</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/165414"&gt;@andreapeterson&lt;/a&gt;&amp;nbsp;isn't it the API you are looking for?&lt;BR /&gt;&lt;A href="https://docs.databricks.com/api/azure/account/serviceprincipalsecrets/create" target="_blank"&gt;https://docs.databricks.com/api/azure/account/serviceprincipalsecrets/create&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is an account-level API, but, counterintuitively, when we create service principals in the workspace, they propagate into account behind the scene! If you &lt;A href="https://docs.databricks.com/api/azure/account/accountserviceprincipals/create" target="_blank" rel="noopener"&gt;create&lt;/A&gt; an account-level SP right away, it will not be added into any workspace, but can be added later using workspace-level &lt;A href="https://docs.databricks.com/api/azure/workspace/serviceprincipals/create" target="_blank" rel="noopener"&gt;create&lt;/A&gt; method. It is pretty confusing, because when we do that in the UI, these details are hidden from us. At least this is how it works in my Azure environment. It took me a while to realize that.&lt;/P&gt;&lt;P&gt;To summarize, in your case you need to try to create OAuth secret using the account-level API I gave, even though you created it in the workspace. Hopefully you have permissions to call account API in your org.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 00:38:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/120013#M3395</guid>
      <dc:creator>vr</dc:creator>
      <dc:date>2025-05-23T00:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth API for service user</title>
      <link>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/120553#M3414</link>
      <description>&lt;P&gt;This was exactly it! I do have permissions to call account api's in my org, however I did not realize I could call that api to make oauth secrets for other various&amp;nbsp;&lt;EM&gt;workspace principals,&amp;nbsp;&lt;/EM&gt;so thank you so much for helping me and finding this and explaining that, it is confusing the propagation behind the scenes but I think I am finally getting the hang of it haha. Thank you again this was a great find&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 13:41:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/oauth-api-for-service-user/m-p/120553#M3414</guid>
      <dc:creator>andreapeterson</dc:creator>
      <dc:date>2025-05-29T13:41:35Z</dc:date>
    </item>
  </channel>
</rss>

