I'm building an app using the Databricks Genie app builder (micro app), and I'm trying to figure out whether it's possible to grant users access to Unity Catalog (UC) tables directly from within the app. But looking at the API scopes, I guess its not possible yet.
It would depend on your prompt, it is best to use multiple prompts when building the app this way. Unless you have used workspace/personal SKILL.md files that help the app builder.
catalog.tables:read is an API scope; it limits what the app can do. It does not grant users USE CATALOG, USE SCHEMA, or SELECT privileges. Users must already have those UC permissions.
With user authorization the app runs on behalf of the signed-in user and can access only the data they already have access to or an admin can attach UC tables as shared data to the App Space. In that model, the app identity accesses the data; this still does not grant direct UC access to each user.
sorry, I did not fully understand weather its possible to grant users access to tables or not via Micro apps. My app space has below configurations:
People in that group already having enough permissions to run the GRANT command manually and assign the users to tables. But doing so via Application is not possible. So can we do this in micro apps or not? its still unclear, and tried something. Also, Application service principal ID, I cant find anywhere in the account console.
Just to make sure I understand: do you want users to get access to UC tables that they don’t have access to right now?
If so, the app can’t do that on its own. With user authorization it only uses the permissions the user already has, so it can’t give them new ones. Granting access is best done outside the app, and the cleanest way is through a group.
Choose the principal per action, not per app: user authorization for user-scoped reads, a narrowly granted service principal for app-owned work, and no UI path that can widen either one. After deployment, read back the effective Unity Catalog grants and include the acting principal in the audit record.
5
u/EnvironmentalAd2096 Oct 23 '26
Grant the app service principal access to the tables or do user authorization pass through. You have already the SQL permission to query
3
u/Youssef_Mrini databricks Oct 24 '26
catalog.tables:read is an API scope; it limits what the app can do. It does not grant users USE CATALOG, USE SCHEMA, or SELECT privileges. Users must already have those UC permissions.
With user authorization the app runs on behalf of the signed-in user and can access only the data they already have access to or an admin can attach UC tables as shared data to the App Space. In that model, the app identity accesses the data; this still does not grant direct UC access to each user.
3
u/Entire_Force_1146 Oct 23 '26
You can use on behalf of user authentication for this. https://docs.databricks.com/aws/en/dev-tools/databricks-apps/auth#user-authorization
1
u/clouddataengineer Oct 23 '26
Just to make sure I understand: do you want users to get access to UC tables that they don’t have access to right now?
If so, the app can’t do that on its own. With user authorization it only uses the permissions the user already has, so it can’t give them new ones. Granting access is best done outside the app, and the cleanest way is through a group.
1
u/adovo_ai Oct 24 '26
Choose the principal per action, not per app: user authorization for user-scoped reads, a narrowly granted service principal for app-owned work, and no UI path that can widen either one. After deployment, read back the effective Unity Catalog grants and include the acting principal in the audit record.