Skip to main content

Power BI

Needs Votes

Add support for Role in Snowflake Connector

Vote (189) Share
Taylor Paddock's profile image

Taylor Paddock on 30 Jan 2019 00:14:56

Currently, the Snowflake user's default role is used for the connection. Need the ability to specify a Snowflake role if a user is assigned to more than one role. Role is already an optional parameter in the ODBC connector that is required to be installed. Using the ODBC connector instead will not work as DirectQuery is needed from the Snowflake Connector.

Comments (17)
Taylor Paddock's profile image Profile Picture

1d61673c 400b-45db-ba77-9dfdaf9923ba on 06 Jul 2020 00:09:07

RE: Add support for Role in Snowflake Connector

Without this feature we have to deal with a painful workaround of running a secondary data security provisioning in the database where we could simply rely on roles. However, when we have more than one subject that could be segregated by roles we always facing the issue with people having access to more than one subject. Creating roles that are combinations of roles does not scale... We need to be able to specify a role for a particular session/connection!

Taylor Paddock's profile image Profile Picture

9ba44be4 0afb-4f86-9269-0a5e1e24ed2f on 06 Jul 2020 00:09:06

RE: Add support for Role in Snowflake Connector

This is very much needed for line of business reporting.

Taylor Paddock's profile image Profile Picture

e2c0e3fe 29e1-4d24-8e41-f55df53ad193 on 06 Jul 2020 00:09:05

RE: Add support for Role in Snowflake Connector

This feature is very critical and needed

Taylor Paddock's profile image Profile Picture

c3a674ad 25d7-407a-9714-62a6c60bb486 on 06 Jul 2020 00:07:14

RE: Add support for Role in Snowflake Connector

Pretty crazy that you can't specify this outside the DSN... needed for users with access to multiple roles.

Taylor Paddock's profile image Profile Picture

d7b0004b c142-4bec-b583-2b81f10d842f on 06 Jul 2020 00:06:28

RE: Add support for Role in Snowflake Connector

Is this supported now?

Taylor Paddock's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 06 Jul 2020 00:06:19

RE: Add support for Role in Snowflake Connector

Please vote for this one too!
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/33350926-snowflake-connector-add-sql-statement-as-option

Taylor Paddock's profile image Profile Picture

a6966d00 35c5-4f4f-b011-1f73ec2a9792 on 05 Jul 2020 23:52:57

RE: Add support for Role in Snowflake Connector

Snowflake security administrators can assign only one default role to a user account. Per vendor recommendations, members of built-in roles (e.g. SECURITYADMIN, SYSADMIN, and ACCOUNTADMIN) are encouraged to assign a low-privilege default role. Those users must elevate their security token to perform DBA like tasks and will generally have insufficient permissions to read from user-defined content hosted in the Snowflake account. With interactive sessions and other BI tools, those user accounts can issue statements like "USE ROLE mydatabase_db_reader" to change security contexts for BI client purposes. The inability to alter the default role limits some users from being able to access all of the database tables and views that would otherwise be available using other BI tools that support the USE ROLE semantics.