<?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 list users having access to scope credentials in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/list-users-having-access-to-scope-credentials/m-p/23557#M16281</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I list all the users or groups having access to the key-vault backed scope credentials?&lt;/P&gt;&lt;P&gt;Let's say, I have a scope called MyScope for which all the secrets are stored in MyKeyVault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to see what users have access there and ideally their permission level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 10:17:00 GMT</pubDate>
    <dc:creator>Braxx</dc:creator>
    <dc:date>2022-04-06T10:17:00Z</dc:date>
    <item>
      <title>list users having access to scope credentials</title>
      <link>https://community.databricks.com/t5/data-engineering/list-users-having-access-to-scope-credentials/m-p/23557#M16281</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I list all the users or groups having access to the key-vault backed scope credentials?&lt;/P&gt;&lt;P&gt;Let's say, I have a scope called MyScope for which all the secrets are stored in MyKeyVault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to see what users have access there and ideally their permission level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 10:17:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/list-users-having-access-to-scope-credentials/m-p/23557#M16281</guid>
      <dc:creator>Braxx</dc:creator>
      <dc:date>2022-04-06T10:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: list users having access to scope credentials</title>
      <link>https://community.databricks.com/t5/data-engineering/list-users-having-access-to-scope-credentials/m-p/23558#M16282</link>
      <description>&lt;P&gt;@Bartosz Wachocki​&amp;nbsp;, As secrets use ACL for the scope, you need to make an API call (can be via CLI also) to list ACL for the given scope &amp;gt;&amp;gt; 2.0/secrets/acls/list more info here &lt;A href="https://docs.databricks.com/dev-tools/api/latest/secrets.html#list-secret-acls" alt="https://docs.databricks.com/dev-tools/api/latest/secrets.html#list-secret-acls" target="_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/secrets.html#list-secret-acls&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl --netrc --request GET \
'https://&amp;lt;databricks-instance&amp;gt;/api/2.0/secrets/acls/list?scope=&amp;lt;scope-name&amp;gt;' \
| jq .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then it returns users or groups:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{
  "items": [
    {
      "principal": "admins",
      "permission": "MANAGE"
    },
    {
      "principal": "data-scientists",
      "permission": "READ"
    }
  ]
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then for groups you can use an API call to get users from group &amp;gt;&amp;gt; 2.0/groups/list-members more on &lt;A href="https://docs.databricks.com/dev-tools/api/latest/groups.html#list-members" alt="https://docs.databricks.com/dev-tools/api/latest/groups.html#list-members" target="_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/groups.html#list-members&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 13:38:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/list-users-having-access-to-scope-credentials/m-p/23558#M16282</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-04-06T13:38:45Z</dc:date>
    </item>
  </channel>
</rss>

