<?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: Cannot create storage credential without Contributor role in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/57800#M30919</link>
    <description>&lt;P&gt;I have added the Contributor role to my Service principal and I still get the same error. I tried multiple auth options and multiple clients, including sending a request to the API itself. I know the token is correct as other API endpoints work just fine. Could you guys help?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-01-18 17_00_46-Create credentials - My Workspace.png" style="width: 629px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/5865i4593819BA897EFB9/image-dimensions/629x209/is-moderation-mode/true?v=v2" width="629" height="209" role="button" title="2024-01-18 17_00_46-Create credentials - My Workspace.png" alt="2024-01-18 17_00_46-Create credentials - My Workspace.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 18 Jan 2024 17:03:25 GMT</pubDate>
    <dc:creator>maikelos272</dc:creator>
    <dc:date>2024-01-18T17:03:25Z</dc:date>
    <item>
      <title>Cannot create storage credential without Contributor role</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/57429#M30776</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I am trying to create a Storage Credential. I have created the access connector and gave the managed identity &lt;/SPAN&gt;&lt;SPAN&gt;"Storage Blob Data Owner"&lt;/SPAN&gt;&lt;SPAN&gt; permissions. However when I want to create a storage credential I get the following error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;SPAN&gt;Creating a storage credential requires the contributor role over the corresponding access connector with ID&lt;BR /&gt;/subscriptions/655a2f34-****-****-b77d-f45e70210122/resourceGroups/sub-name/providers/Microsoft.Databricks/accessConnectors/connector-name. &lt;BR /&gt;Please contact your account admin.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;The problem is that in my organization I cannot get a Contributor role, furthermore I'm not even sure if it is required. I have done some further tests with a service principal and I get the following error when calling an API to get the storage credentials created:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;SPAN&gt;databricks --log-level DEBUG --profile VNXSPT storage-credentials create --json '@.\storage-cred-vnx.json'&lt;/SPAN&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"error_code"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"RESOURCE_DOES_NOT_EXIST"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Refresh token not found for userId: Some(4295475011008721)"&lt;/SPAN&gt;&lt;BR /&gt;...&lt;/PRE&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The&lt;/SPAN&gt; &lt;SPAN&gt;above&lt;/SPAN&gt; &lt;SPAN&gt;also&lt;/SPAN&gt; &lt;SPAN&gt;doesn't&lt;/SPAN&gt; &lt;SPAN&gt;work&lt;/SPAN&gt; &lt;SPAN&gt;but&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;another&lt;/SPAN&gt; &lt;SPAN&gt;environment&lt;/SPAN&gt; &lt;SPAN&gt;I&lt;/SPAN&gt; &lt;SPAN&gt;have&lt;/SPAN&gt; &lt;SPAN&gt;tested&lt;/SPAN&gt; &lt;SPAN&gt;this&lt;/SPAN&gt; &lt;SPAN&gt;it&lt;/SPAN&gt; &lt;SPAN&gt;worked&lt;/SPAN&gt; &lt;SPAN&gt;without&lt;/SPAN&gt; &lt;SPAN&gt;the&lt;/SPAN&gt; &lt;SPAN&gt;SP&lt;/SPAN&gt; &lt;SPAN&gt;having&lt;/SPAN&gt; &lt;SPAN&gt;a&lt;/SPAN&gt; &lt;SPAN&gt;contributor&lt;/SPAN&gt; &lt;SPAN&gt;role&lt;/SPAN&gt; &lt;SPAN&gt;on&lt;/SPAN&gt; &lt;SPAN&gt;the&lt;/SPAN&gt; &lt;SPAN&gt;access&lt;/SPAN&gt; &lt;SPAN&gt;connector.&lt;/SPAN&gt; &lt;SPAN&gt;How&lt;/SPAN&gt; &lt;SPAN&gt;can&lt;/SPAN&gt; &lt;SPAN&gt;I&lt;/SPAN&gt; &lt;SPAN&gt;make&lt;/SPAN&gt; &lt;SPAN&gt;this&lt;/SPAN&gt; &lt;SPAN&gt;work&lt;/SPAN&gt; &lt;SPAN&gt;with&lt;/SPAN&gt; &lt;SPAN&gt;the&lt;/SPAN&gt; &lt;SPAN&gt;contributor&lt;/SPAN&gt; &lt;SPAN&gt;role?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jan 2024 10:03:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/57429#M30776</guid>
      <dc:creator>maikelos272</dc:creator>
      <dc:date>2024-01-16T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create storage credential without Contributor role</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/57800#M30919</link>
      <description>&lt;P&gt;I have added the Contributor role to my Service principal and I still get the same error. I tried multiple auth options and multiple clients, including sending a request to the API itself. I know the token is correct as other API endpoints work just fine. Could you guys help?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-01-18 17_00_46-Create credentials - My Workspace.png" style="width: 629px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/5865i4593819BA897EFB9/image-dimensions/629x209/is-moderation-mode/true?v=v2" width="629" height="209" role="button" title="2024-01-18 17_00_46-Create credentials - My Workspace.png" alt="2024-01-18 17_00_46-Create credentials - My Workspace.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 17:03:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/57800#M30919</guid>
      <dc:creator>maikelos272</dc:creator>
      <dc:date>2024-01-18T17:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create storage credential without Contributor role</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/63429#M32236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98219"&gt;@maikelos272&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you manage to solve the problem? I have the same headache here...&lt;/P&gt;&lt;P&gt;I get the same error while trying to create the storage credentials. When I'm using my user token the credentials are successfully created but not with the SPN's token. The permissions are the same for me and the SPN.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 19:42:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/63429#M32236</guid>
      <dc:creator>RTabur</dc:creator>
      <dc:date>2024-03-12T19:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create storage credential without Contributor role</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/65302#M32776</link>
      <description>&lt;P&gt;Hi &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;Can you elaborate on the error "&lt;SPAN&gt;&lt;SPAN class=""&gt;Refresh token not found for userId&lt;/SPAN&gt;&lt;/SPAN&gt;"?&lt;/P&gt;&lt;P&gt;I have exactly the same problem as described in this thread. I am trying to create a storage credential using a Personal Access Token from a Service Principal. This results in 404 with the response body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
	"error_code": "RESOURCE_DOES_NOT_EXIST",
	"message": "Refresh token not found for userId: Some(2302042022180399)",
	"details": [
		{
			"@type": "type.googleapis.com/google.rpc.RequestInfo",
			"request_id": "d731471b-b6b8-41a9-bf77-993529733668",
			"serving_data": ""
		}
	]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use a Personal Access Token from my own user, the storage credential is created without error. Both the Service Principal and I have admin rights in Databricks and the Service Principal is Contributor on the Subscription.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 12:14:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/65302#M32776</guid>
      <dc:creator>Kim3</dc:creator>
      <dc:date>2024-04-02T12:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create storage credential without Contributor role</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/95997#M39197</link>
      <description>&lt;P&gt;Did someone find a solution?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{
	"error_code": "RESOURCE_DOES_NOT_EXIST",
	"message": "Refresh token not found for userId: Some(2302042022180399)",
	"details": [
		{
			"@type": "type.googleapis.com/google.rpc.RequestInfo",
			"request_id": "d731471b-b6b8-41a9-bf77-993529733668",
			"serving_data": ""
		}
	]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I am Also getting the same error which is giving me headache..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 14:25:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/95997#M39197</guid>
      <dc:creator>subhash_1692</dc:creator>
      <dc:date>2024-10-24T14:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create storage credential without Contributor role</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/96992#M39388</link>
      <description>&lt;P&gt;I don't remember exactly how I solved this issue but I think I've added the following permissions on the metastore for the SPN through the Databricks API (you may not need all of them): CREATE_CATALOG, CREATE_CONNECTION, CREATE_EXTERNAL_LOCATION, CREATE_PROVIDER, CREATE_RECIPIENT, CREATE_SHARE, CREATE_STORAGE_CREDENTIAL&lt;/P&gt;&lt;P&gt;Please confirm if this solves your issue.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:18:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-create-storage-credential-without-contributor-role/m-p/96992#M39388</guid>
      <dc:creator>RTabur</dc:creator>
      <dc:date>2024-10-31T13:18:30Z</dc:date>
    </item>
  </channel>
</rss>

