Restrict access of user/entity to hitting only specific Databricks Rest APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:22 AM - edited 03-19-2024 03:23 AM
Hi community,
Assume I generate a personal access token for an entity. Post generation, can I restrict the access of the entity to specific REST APIs? In other words, consider this example where once I use generate the token and setup a bearer token based auth and try accessing different REST APIs provided by Databricks like below 3 APIs:
i) /api/2.1/unity-catalog/catalogs
ii) /api/2.0/preview/sql/queries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2024 08:35 AM
Did you get an answer how to restrict and if it is possible an access to api?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 05:31 AM
You have to rely on access control settings on resources and entities (users or service principals or create some cluster policies), rather than directly restricting the API endpoints at the token level.
Note: API access based on fine-grained control of the token itself may be currently not supported OOB by Databricks.

