cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
grant_culp
Regular Visitor

Snowflake Connector Bug - Role

The snowflake connector only works when I use my default role in the "Specify a text value to use as Role name" option. If I use a role that is not my default role (set in snowflake) it does not allow me to connect to the data. Power BI throws an error "We couldn't authenticate with the credentials provided." 
I am using the SSO/Microsoft Account option to authenticate to Snowflake. 

 

It works when I use my default role.

 

How can I get it to work when I use a different role that I have access to in Snowflake?

3 REPLIES 3
adminmurtuzam
Frequent Visitor

We have also seen this as a problem. After creating the security integration we are able to create the connection but we are only able to connect with the default role. Using another role gives an authentication error.

v-yingjl
Community Support
Community Support

Hi @grant_culp ,

See: Using SSO Between Power BI and Snowflake 

If you connect using the Microsoft Account option, an in-app browser window will open redirecting you to authenticate using your AAD tenant. 

 

To achieve the experience described above, you need to perform a one-time setup in Snowflake. Log in as an ACCOUNTADMIN in your Snowflake account, and create the security integration described in this doc. Ensure that the Power BI user exists in Snowflake and that it also matches the user in AAD. You can set up user-matching rules in multiple ways through security integration settings, but the most common way is to use the UPN value in AAD to match with the login_name of the Snowflake user. 

 

You can also refer the error messages workarounds from Snowflake document: Power BI SSO to Snowflake 

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yeah, we have created the Security Integration and it works. The only thing that does not work is the "Role" in the Connection options when I put in a Role that is not my default role in Snowflake.

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!