<?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 [Question]: Get permissions for a schema containing backticks via the API in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/question-get-permissions-for-a-schema-containing-backticks-via/m-p/122779#M46866</link>
    <description>&lt;P&gt;I am unsure if this is specific to the Java SDK, but i am having issues checking effective permissions on the following schema:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;databricks_dev.test_schema`&lt;/LI-CODE&gt;&lt;P&gt;In Scala i have the following example test:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;  test("attempting to access schema with backtick") {
    val client = new WorkspaceClient()
    client.config().setHost("redacted").setToken("redacted")

    val result = client.grants().getEffective(
        new GetEffectiveRequest()
          .setFullName("databricks_dev.test_schema`")
          .setPrincipal("redacted")
          .setSecurableType(SecurableType.SCHEMA)
      )
    .getPrivilegeAssignments
    println(result)
  }&lt;/LI-CODE&gt;&lt;P&gt;But this fails with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Illegal character in path at index 124: https://dbc-xxxxx-xxx.cloud.databricks.com/api/2.1/unity-catalog/effective-permissions/SCHEMA/databricks_dev.test_schema`&lt;/LI-CODE&gt;&lt;P&gt;- If i rename the schema and remove the back-tick, this works fine.&lt;/P&gt;&lt;P&gt;- I have also tried encoding the backtick as %60 and i get the same error as above&lt;/P&gt;&lt;P&gt;- i have tried wrapping the schema in backticks and escaping the backtick but still get the same error&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 08:32:32 GMT</pubDate>
    <dc:creator>seapen</dc:creator>
    <dc:date>2025-06-25T08:32:32Z</dc:date>
    <item>
      <title>[Question]: Get permissions for a schema containing backticks via the API</title>
      <link>https://community.databricks.com/t5/data-engineering/question-get-permissions-for-a-schema-containing-backticks-via/m-p/122779#M46866</link>
      <description>&lt;P&gt;I am unsure if this is specific to the Java SDK, but i am having issues checking effective permissions on the following schema:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;databricks_dev.test_schema`&lt;/LI-CODE&gt;&lt;P&gt;In Scala i have the following example test:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;  test("attempting to access schema with backtick") {
    val client = new WorkspaceClient()
    client.config().setHost("redacted").setToken("redacted")

    val result = client.grants().getEffective(
        new GetEffectiveRequest()
          .setFullName("databricks_dev.test_schema`")
          .setPrincipal("redacted")
          .setSecurableType(SecurableType.SCHEMA)
      )
    .getPrivilegeAssignments
    println(result)
  }&lt;/LI-CODE&gt;&lt;P&gt;But this fails with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Illegal character in path at index 124: https://dbc-xxxxx-xxx.cloud.databricks.com/api/2.1/unity-catalog/effective-permissions/SCHEMA/databricks_dev.test_schema`&lt;/LI-CODE&gt;&lt;P&gt;- If i rename the schema and remove the back-tick, this works fine.&lt;/P&gt;&lt;P&gt;- I have also tried encoding the backtick as %60 and i get the same error as above&lt;/P&gt;&lt;P&gt;- i have tried wrapping the schema in backticks and escaping the backtick but still get the same error&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:32:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/question-get-permissions-for-a-schema-containing-backticks-via/m-p/122779#M46866</guid>
      <dc:creator>seapen</dc:creator>
      <dc:date>2025-06-25T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: [Question]: Get permissions for a schema containing backticks via the API</title>
      <link>https://community.databricks.com/t5/data-engineering/question-get-permissions-for-a-schema-containing-backticks-via/m-p/122781#M46867</link>
      <description>&lt;P&gt;Update:&lt;BR /&gt;&lt;BR /&gt;Interestingly, if i URL encode _twice_ it appears to work, eg:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;  test("attempting to access schema with backtick") {
    val client = new WorkspaceClient()
    client.config().setHost("redacted").setToken("redacted")

    val name = "databricks_dev.test_schema`"
    val encoded = URLEncoder.encode(name, "UTF-8")
    val encodedAgain = URLEncoder.encode(encoded, "UTF-8")

    val result = client.grants().getEffective(
        new GetEffectiveRequest()
          .setFullName(encodedAgain)
          .setPrincipal("redacted")
          .setSecurableType(SecurableType.SCHEMA)
      )
      .getPrivilegeAssignments
    println(result)
  }&lt;/LI-CODE&gt;&lt;P&gt;So:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"databricks_dev.test_schema`" does not work&lt;/LI&gt;&lt;LI&gt;"databricks_dev.test_schema%60" does not work&lt;/LI&gt;&lt;LI&gt;"databricks_dev.test_schema%2560" DOES work&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am assuming i am doing something wrong here as this behavior does appear strange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:37:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/question-get-permissions-for-a-schema-containing-backticks-via/m-p/122781#M46867</guid>
      <dc:creator>seapen</dc:creator>
      <dc:date>2025-06-25T08:37:32Z</dc:date>
    </item>
  </channel>
</rss>

