QuestionQ67

VerifiedSecuring and governing agentic workflows

You are setting up a custom agent in Gemini Enterprise that uses a dedicated service account to query an Agent Search data store. During testing, grounded search queries fail with a 403 Permission Denied error indicating that the principal lacks the discoveryengine.servingConfigs.search permission on the data store resource. You need to fix this permission error while following the principle of least privilege.

What should you do?

Explanation

The Discovery Engine Viewer role includes discoveryengine.servingConfigs.search and can be granted directly on a data store, limiting the grant to the resource the agent needs. It avoids the write or administrative access of broader roles; Cloud Storage object access does not provide the missing Discovery Engine permission. (docs.cloud.google.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!