Sync user details from PostgreSQL to SFTP
Recipe ToolsMarketingDatabaseUtilitiesData ParserFile Transfer
What it does
When a scheduled interval triggers, this automation queries PostgreSQL for users, roles, and role associations. It organizes the data into lists and prepares it for transfer to SFTP or downstream systems.
Who it's for
IT teams who need to keep user records synchronized between PostgreSQL and file storage systems.
How teams use this
Keep user records in sync daily
Run this automation every morning to pull the latest users and roles from PostgreSQL and prepare them for distribution. Teams always have current data without manual exports.
Feed user data to downstream systems
Route the organized lists to a connected application or data warehouse so other tools stay in sync with PostgreSQL. Only the destination system changes.
Filter users by status or role
Add a condition to include only active users or filter by specific roles before export. Set the query logic to check status or role so only relevant records transfer.
How it works
- Run on a scheduled interval. This automation starts at the specified time and frequency so user data stays current without manual intervention.
- Query users and roles from PostgreSQL. Retrieve all active users, deactivated users, and role assignments from the ilm.users, ilm.user_role_assoc, and ilm.role tables.
- Organize data into separate lists. Create cached lists for users, deactivated users, roles, and role associations so the data is structured and ready for processing.
- Format data for file transfer. Parse and structure the lists into a format suitable for SFTP delivery or connection to other systems that need user and role information.
- Transfer data to SFTP. Send the formatted user, role, and association data to SFTP so someone can retrieve it or route it to downstream systems.