Hello @robert-moyai
Good day mate!
This is complicated but let me share the community link where there is detailed steps for this:
Implement fine-grained permissions for Databricks Apps with on-behalf-of-user authorization
Also, I have a reference link from databricks documentation:
https://docs.databricks.com/aws/en/dev-tools/auth/oauth-u2m
I hope this will help you.
To add more from the blog it confirms that
Databricks Connect is not among the supported scopes for OBO. Thatโs why even though OBO gets you parity with user permissions for SQL warehouses, Unity Catalog, and data access, you cannot yet open a Databricks Connect session with that forwarded user token.
So the behavior you saw (โX-Forwarded-Access-Token missing Databricks Connect scopeโ) is expected. The blog confirms the design: OBO tokens are intentionally down-scoped.
Thank you. good day!