web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Microsoft 365 Copilot ...
Copilot Studio
Suggested Answer

Microsoft 365 Copilot connection to Snowflake via Delegated OAuth

(1) ShareShare
ReportReport
Posted on by 2
I am currently working on integrating Microsoft 365 Copilot (via Copilot Studio / Power Platform) with Snowflake using Entra ID delegated OAuth.
The goal is to let Copilot agents query Snowflake data, applying existing row access policies automatically based on the signed-in user’s Entra identity.  
 
 What I have already done 
 
  1.  
  1.  Azure Entra ID setup
  - Registered a client application in Entra for delegated OAuth.  
  - Configured redirect URIs such as `https://global.consent.azure-apim.net/redirect/snowflakev2`.  
  - Verified that delegated sign-in works correctly.  
   
    2.  Snowflake setup
       - Created a `SECURITY INTEGRATION` in Snowflake for external OAuth (Entra delegated flow).  
       - Verified the integration works — I can log into Snowflake UI with the same Entra user.  
       - Confirmed the user has:  
            - Non-null `DEFAULT_ROLE`, `DEFAULT_WAREHOUSE`, and `DEFAULT_NAMESPACE`
  •   Sufficient `USAGE` and `SELECT` grants on the target database/schema.  
     
  - With this user I can:  
    - Connect to Snowflake in the web UI.  
    - Connect to Power BI using SSO and query data successfully.  
 
    3. Copilot connection
       - Created a Snowflake connection in Power Platform / Copilot Studio using delegated OAuth.  
         - Authentication succeeds and I can see the server name populated.  
 
 
The issue encountered  
When I attempt to select a dataset in Copilot Studio after signing in, I consistently get the following error trace:  
 
Error message:     Snowflake server or database are null for Snowflake connection.
 
Internal API payload (from DiscoverFederatedKnowledgeV2): 
 {
   "connectorId":"/providers/Microsoft.PowerApps/apis/shared_snowflakev2",
   "connectionId":"cc021c0aaac6408d928dc1ccb6e0a9fc",
   "federatedTableSearchConfiguration":"    {\"SqlServerName\":\"GENERICDATASETNAME\",\"SqlDbName\":\"default\"}"
 }
 
As you can see, even though my Snowflake user has a valid default namespace and I can connect successfully in Power BI and the Snowflake UI, the Copilot connector appears to be sending placeholder values (`GENERICDATASETNAME` and `default`) instead of the real Snowflake host and database. This results in the 500 error during dataset discovery.  
 
Is there a supported way to ensure the delegated OAuth connection from Microsoft 365 Copilot to Snowflake passes a valid Server and Database into the connection object?  
Or is this something that must be explicitly supplied by the Power Platform connector, outside of Snowflake’s control?  
 
Any guidance, best practices, or known workarounds for making delegated OAuth work with Copilot Studio’s Snowflake connector would be greatly appreciated.  
 
copilot - connect to snowflake.png
Categories:
I have the same question (4)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,976 Moderator on at
    Hi,
     
    In this case have you created Virtual Tables in Dataverse for these specific Tables in Snowflake? 
    The agent will not infer the persons defaults, so if they are not provided in the Connection directly, or if the metadata is missing / bad you will get this issue.
    Using virtual tables will help resolve this, but I would simply review to make sure the connection information is set, via EVs or other, but don't try to base it on the logged in user, unless you are using service principals, but that another discussion.
     
    Cheers

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 645

#2
Vish WR Profile Picture

Vish WR 234

#3
Haque Profile Picture

Haque 211

Last 30 days Overall leaderboard