Data-level permissions using Posit Connect (with Databricks, Snowflake, OAuth)
Should one viewer of your app be able to see more (or different) data than another? Maybe colleagues in California should only see data relevant to them? Or managers should only have access to their own employee data?
The Connect team joined us for a demo on inheriting data-level permissions using Posit Connect and Databricks Unity Catalog. While this workflow uses Databricks to illustrate federated data access controls, this same methodology can also be applied to Snowflake or any external data source that supports OAuth.
During this workflow demo, you will learn:
- How to define row-level access controls in Databricks Unity Catalog
- How to create a Databricks OAuth integration in Posit Connect
- How to write interactive applications that utilize the viewer’s Databricks credentials when reading data from Databricks Unity Catalog, providing the viewer with a personalized experience depending on their level of data access
- How to deploy this application to Posit Connect and share it within your organization
To enable OAuth integrations, your team will need to upgrade to Posit Connect 2024.08.0. This feature is available in Enhanced and Advanced product tiers.
If you’d like to talk further with our team 1:1 about doing this, you can find a time to chat here.
Helpful resources for this workflow:
- Full examples to get you started: https://github.com/posit-dev/posit-sdk-py/tree/main/examples/connect
- Admins will likely be most interested in starting here: https://docs.posit.co/connect/admin/integrations/oauth-integrations/databricks/
- End users will be most interested here: https://docs.posit.co/connect/user/oauth-integrations/
- Q&A Link: https://youtube.com/live/TZQY6rm6hU4?feature=share
Additional resources shared:
- Release Blurb: https://docs.posit.co/connect/news/#posit-connect-2024.08.0
- Security: https://docs.posit.co/connect/admin/integrations/oauth-integrations/security.html
- Publishing Quarto: https://docs.posit.co/connect/how-to/basic/publish-databricks-quarto-notebook/
- sparklyr: https://github.com/sparklyr/sparklyr?tab=readme-ov-file#connecting-through-databricks-connect-v2
- odbc: https://github.com/r-dbi/odbc?tab=readme-ov-file#odbc-
We host these Workflow Demos the last Wednesday of every month, and you can add them to your calendar here.