cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide read access only to the view in DBSQL and not the underlying table?

shan_chandra
Honored Contributor III
Honored Contributor III

Facing the below error

User cannot select on table `database2.view1` because:
There is no owner for table `database1.table1`. Ask your administrator to set an owner."

1 ACCEPTED SOLUTION

Accepted Solutions

shan_chandra
Honored Contributor III
Honored Contributor III

Please find the below resolution

  1. The owner of the table needs to be the same as the owner of the View
  2. Create a group with users for whom we require only access to the view
  3. The group needs to have SELECT and READ_METADATA on view(database2.view1), USAGE on the database containing the view(database2)

View solution in original post

2 REPLIES 2

shan_chandra
Honored Contributor III
Honored Contributor III

Please find the below resolution

  1. The owner of the table needs to be the same as the owner of the View
  2. Create a group with users for whom we require only access to the view
  3. The group needs to have SELECT and READ_METADATA on view(database2.view1), USAGE on the database containing the view(database2)

Hi @Shanmugavel Chandrakasu​ , Thank you for sharing such an informative post with our Community 🎯.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.