To be able to access SalesForce Data Cloud via the connector, you'll first need a connected app in Salesforce. Here's how to create that.
Log in to Salesforce and go to setup
Search for App Manager
When you open it, it should look like this
Click on New Connected App
- Give the app a name
- Enter email
- Check Enable OAuth settings
- Put "https://login.salesforce.com/services/oauth2/success" in the callback url
- Ensure that the following are selected in the scopes
- Manage user data via APIs (api)
- Access all datacloud resources
- Perform ANSI SQL queries on DataCloud
Click on Save.
In set up go to Manage Connected App
Click on the newly created connected app and then click on Edit Policies.
Make sure that under oauth policies we have "Relax IP restrictions" and "Allow all users to self authorize" and then click Save.
Click on Manage Customer Keys and provide validation code if applicable.
Copy the keys.
In setup, go to Oauth and OpenId settings. Ensure all the options are turned on.
Note: If you want to restrict IP's, you can set it up in the connected app. See the article Restrict Access to Trusted IP Ranges for a Connected App for more details.