Respecting each user's Unity Catalog permissions in a RAG agent

GenAI Engineer Governance Medium Question 24 of 45

A Generative AI Engineer deploys a document assistant whose users each hold different Unity Catalog permissions on the source documents. Every user currently sees the same retrieved documents, because the agent reads the index with the deploying engineer's access.

How should the engineer change the deployment?

Show answer and explanation

AUse on-behalf-of-user authentication so the agent runs as each caller

On-behalf-of-user authentication runs the agent with the permissions of the end user making the request, which is what makes retrieval reflect each caller's own grants. Automatic authentication passthrough is the behaviour the scenario already describes: the agent runs with the permissions of the user who deployed it. A service account token gives every caller one shared identity, and a row filter applied at sync time runs as the syncing identity, so a single filtered copy lands in the index for everyone.

Source: docs.databricks.com/aws/en/agents/custom-agents/model-servi…

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 45 original GenAI Engineer practice questions