How to authenticate Vector Search Retriever Tool in Databricks AI Agent App?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2025 11:00 PM
I’m getting the following error while building a Databricks AI Agent app:
My code looks like this:
I tried passing a Databricks PAT token, but I still see the same error. Do I need to provide a client ID and secret as well? From my understanding, the service principal for app is Databricks-managed and created automatically—so how can I get the credentials?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2025 12:33 AM
Hi @atharvaghodekar ,
AI agents support 3 authentication methods:
- automatic authentication passthrough
- on-behalf-of-use authentication (OBO)
- manual authentication
In case of manual authentication you need to explicitly provide credentials using environment variables.
With OBO, agent runs with the permissions of the end user making the request.
And automatic authentication passthrough let agent run with the permissions of the user who deployed it. (But not all resources supports this authentication methods).
For more details check following docs page. There's an example of how to authenticate to Vector Search Retriever Tool using OBO authentication:
Authentication for AI agents - Azure Databricks | Microsoft Learn