a week ago
Hello!
I’m trying to add a tool — Azure Databricks Genie — in Microsoft Copilot Studio for my agent, but I’m running into some difficulties. Is it possible to establish this connection using a Pro cluster, or does it only work with a serverless cluster?
a week ago
It can be either a serverless or classic SQL warehouse that it uses. You do need to have enabled the Managed MCP servers preview in your databricks workspace.
a week ago
Thank you for your answer @Emma ! The agent is now working and i add the microsoft 365 channel. I can add the agent and talk with him from my side, but when I share the agents with my colleagues, they cannot talk with him.
I already gave permissions to my colleagues in unity catalog, schema and table, in cluster and in genie. I also add the user in a security group and add this group to the permissions in the channels tab.
What is missing?
Thank you!
Monday
When you say they can't talk to him, what do you mean? Can they see him at all? or is it that Genie returns no results to them? Have you published the agent? https://learn.microsoft.com/en-us/microsoft-copilot-studio/publication-add-bot-to-microsoft-teams
Tuesday
They can talk with genie (directly in databricks) without problems. In copilot the agent is published and i can add it and talk with him. My colleagues can add it in teams and Microsoft 365 but when they try to make questions it give an error and the cluster in databricks don't turn on.
Tuesday
If you are using a classic SQL warehouse you would need this on when they try to use it, it won't automatically spin up in the background. This is why a Serverless SQL endpoint is recommended, then it just spins up for the queries to run. The users would need permision to use the Warehouse.
Tuesday
@emma_s We are using a serverless cluster, but when my colleagues talk with copilot agent the cluster doesn't turn on / or simply answer if we already have the cluster on.
We also had already provide permissions to the users to use the Warehouse, but it continues not working.
Here’s the behaviour I’m observing:
In summary:
The issue is with the shared agent using an existing connection—meaning the identity is not flowing through when the agent is shared, even though it works for the creator and for users who create their own connection.
Even when sharing the agent for development purposes, the users still cannot interact using the existing connectivity configuration.
Do you have more suggestions?
Tuesday
So I think I see the issue now: Shared agents in Copilot Studio (Teams/M365) using pre-configured connections (either OAuth or service principal) do not successfully flow user identity to downstream resources for users other than the creator; only the agent owner or users who manually create their own connections can interact with the agent as intended. This is due to how the identity/authentication delegation works in Microsoft Power Platform and Copilot Studio.
This is why it works when they set up the connection themselves but not when they try to use the one you created. The workaround other than setting it up themselves would be to set it up using a service principal instead. This means the Service principal permissions would be used by all users.
SPs are machine-to-machine identities that are not associated with any specific end user. When you share an agent configured to use an SP, all users interact with the Databricks backend as the SP—not as themselves. This means user-level governance, auditing, or personalized data access cannot be enforced beyond what the SP has been granted.
But bear in mind if you take this approach then you won't be using the individual users permissions on the genie so granular access control won't apply. It will be based on the service principal permissions.
Wednesday
Hello @emma_s we are already testing one agent with Service Principal connection using Microsoft authentication but it has the same behaviour. We also shared the service principal connection with all the users through a security group. The service principal has all the permissions in databricks as well.
Thursday
I'm afraid I don't have much further suggestions. I'd suggest you raise a ticket with Microsoft on this.
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now