You are here:
Get User Credentials from Snowflake
Gather the user information and authentication details in Snowflake to create a data share target.
These steps involve running commands in Snowflake. We recommend contacting your Snowflake admin for any troubleshooting assistance.
-
In Snowflake, create a user for Data 360 admin or Data Aware
Specialist.
If you want to use an existing user, you can skip creating a user. Make sure that the default role isn’t ACCOUNTADMIN, SECURITYADMIN, or ORGADMIN. The user must have USAGE privileges (Read & Query) for the relevant warehouse.CREATE OR REPLACE USER <Data 360 Admin or Data Aware Specialist> PASSWORD = '<string>' LOGIN_NAME = <string> DISPLAY_NAME = <string> FIRST_NAME = <string> MIDDLE_NAME = <string> LAST_NAME = <string> EMAIL = <string> DEFAULT_ROLE = <Any Public Role With Low Privileges>; -
In Snowflake, create a security integration.
CREATE OR REPLACE SECURITY INTEGRATION [IF NOT EXISTS] <Data Cloud_Snowflake_Security_Integration> TYPE = OAUTH OAUTH_CLIENT = CUSTOM OAUTH_CLIENT_TYPE = 'CONFIDENTIAL' OAUTH_REDIRECT_URI = 'https://login.salesforce.com/services/cdpSnowflakeOAuthCallback' ENABLED = TRUE OAUTH_ISSUE_REFRESH_TOKENS = TRUE;For a Data Cloud sandbox org, the
OAUTH_REDIRECT_URIishttps://test.salesforce.com/services/cdpSnowflakeOAuthCallback -
In Snowflake, run the DESCRIBE statement to get the OAUTH_AUTHORIZATION_ENDPOINT
details.
When you create a data share target in Data 360, for Account URL, enter the value of OAUTH_AUTHORIZATION_ENDPOINT and convert any underscores to hyphens and ignore the subdirectory and subsequent parts.DESC SECURITY INTEGRATION <Data Cloud_Snowflake_Security_Integration>;For example, if your OAuth Authorization Endpoint URL is
https://nto_america_dev_instance.example.computing.com/oauth/authorize, enterhttps://nto-america-dev-instance.example.computing.comfor the Account Url. -
In Snowflake, get the client credentials.
Use the Client ID and Client Secret to create a data share target. Share the credentials with your Data 360 admin.SELECT SYSTEM$SHOW_OAUTH_CLIENT_SECRETS( '<Data Cloud_Snowflake_Integration>');

