Schema access restrict in Unity catalog

Azuretech 90 Reputation points
2023-03-31T13:34:30.8133333+00:00

as an Metastore admin, I want to restrict the users/group from creating the new schema . This is needed so that they can use the default root storage location while creating.

I have not provided catalog create permission . it's working fine. Catalog creation is disabled after that.

but why schema creation is still enabled for the group , how to restrict the schema creation in unity catalog metastore.

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-04-03T08:56:18.8933333+00:00

    Hello @Azuretech - Thanks for the question and using MS Q&A platform.

    To restrict users or groups from creating a new schema in the Unity Catalog Metastore in Azure Databricks, you need to remove their "Create Schema" permission from the catalog. You can follow these steps to do so:

    1. Log in to a workspace that is linked to the metastore.
    2. Click "Data" and select the "Catalog"
    3. In the "Permissions" tab, select the user or group that you want to restrict from creating a new schema.
    4. Scroll down to the "Privileges" section and remove the "Create Schema" permission from the user or group.
    5. Click on the "Grant" button to apply the changes.

    User's image

    Once you remove the "Create Schema" permission from the user or group, they will not be able to create a new schema in the Unity Catalog Metastore. Note that this permission only affects schema creation and does not impact their ability to use the default root storage location while creating tables.

    This article explains how to control access to data and other objects in Unity Catalog: Manage privileges in Unity Catalog

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.