Sync new Salesforce users to Amazon Redshift

CRMMarketingSalesUtilitiesDatabase

What it does

When someone is added or updated in Salesforce, this automation searches Amazon Redshift for that user by email. It creates the user in Redshift if not found, updates the record if one exists, and stops if the employee number is missing or duplicates are detected.

Who it's for

Data and analytics teams who need Salesforce user records synced to Amazon Redshift without manual entry.

How teams use this

Onboard new employees to the data warehouse

When someone joins and is added to Salesforce, this automation creates their record in Amazon Redshift so data teams can query employee information without manual setup.

Keep employee details current across systems

When someone updates their profile in Salesforce, this automation syncs those changes to Amazon Redshift so the data warehouse always reflects the latest employee information.

Prevent duplicate records with validation

Add a check to filter out users with missing employee numbers and only sync records when no duplicates are found in Amazon Redshift, ensuring clean data enters the warehouse.

Audit user changes between systems

Include event logging to track when Salesforce users are created or updated in Amazon Redshift, creating an audit trail for compliance and troubleshooting purposes.

How it works

  1. Monitor for new or updated users. Detect when someone is created or updated in Salesforce and retrieve their information including email and employee number.
  2. Check for required employee number. Verify the employee number is present on the Salesforce user record. Stop the automation and send an email to notify someone and the admin if it is missing.
  3. Search for someone in Redshift. Query the public.users table in Amazon Redshift using the Salesforce email to check if someone already exists and detect duplicates in the database.
  4. Create or update the record. Insert a new row in the public.users table in Amazon Redshift if someone is not found, or update the existing row if one match is found with the Salesforce data.