Skip to main content
Announcements
UPGRADE ADVISORY for Qlik Replicate 2024.5: Read More
cancel
Showing results for 
Search instead for 
Did you mean: 
strandafir
Contributor II
Contributor II

Setting the default role when using Snowflake on GCP as a target

Hello Community,

 

Is there any option to set a custom role to the Endpoint Connection for Snowflake?

All I can find in the documentation is that it uses SYSADMIN: https://help.qlik.com/en-US/replicate/May2024/Content/Replicate/Main/Snowflake_Google_Target/google_...

There is a need for using Snowflake external OAuth with OKTA.

To use this, a token is generated by mentioning the scope, which maps to the role.

However, in this particular scenario, role will not be defined in OKTA, and instead a generic scope is defined: SESSION:ROLE-ANY.

This allows the connection to be made to Snowflake with a valid token, but the user needs to manually change the role after connecting.

For Azure and AWS it seems that there is way to do this: https://help.qlik.com/en-US/replicate/May2024/Content/Replicate/Main/Snowflake%20Target/snowflake_pe...

But for Google, the "Additional ODBC connection properties" setting is not available in the UI:

strandafir_0-1726484471484.png

 

Thank you

 

Labels (2)
2 Solutions

Accepted Solutions
john_wang
Support
Support

Hello @strandafir ,

Thanks for reaching out to Qlik Community!

There are several options you may have a try:

1- Add internal parameter additionalConnectionProperties and then input the properties settings there;

john_wang_0-1726490788343.png

 

2- If the above option does not work and you might want to manually change the role after connecting, you may add internal parameter afterConnectScript and put the alter session command there.

john_wang_1-1726490945746.png

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

strandafir
Contributor II
Contributor II
Author

Hey! Sure, here is how it was achieved:

strandafir_0-1727341642937.png

 

View solution in original post

5 Replies
john_wang
Support
Support

Hello @strandafir ,

Thanks for reaching out to Qlik Community!

There are several options you may have a try:

1- Add internal parameter additionalConnectionProperties and then input the properties settings there;

john_wang_0-1726490788343.png

 

2- If the above option does not work and you might want to manually change the role after connecting, you may add internal parameter afterConnectScript and put the alter session command there.

john_wang_1-1726490945746.png

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
strandafir
Contributor II
Contributor II
Author

Thank you@john_wang ! I have tested out with afterConnectScript and it works!

john_wang
Support
Support

Thank you so much for your excellent support @strandafir ! if you can share sample command then it's much appreciated, it's valuable for all of us.

Best Regards,

John.

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
strandafir
Contributor II
Contributor II
Author

Hey! Sure, here is how it was achieved:

strandafir_0-1727341642937.png

 

john_wang
Support
Support

Thank you so much for your information in resolving the technical issue. Your support made a big difference, and I truly appreciate it! @strandafir 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!