Connect your app to Microsoft Azure Active Directory


Export User Data To Marketo

In this article, you’ll learn how to export user data in Auth0 to a CSV file then import it into Marketo using the Bulk Leads endpoint of the Marketo REST API.

Step-by-step guide

Create a user data file

Start by navigating to the Extensions section of the Dashboard and open the User Import / Export Extension. On the extension page, select Export from the menu.

Next, set the Export Format to the required file format. Marketo accepts file imports in CSV format so choose the Tab Separated Value file (*.csv) option.

User Import/Export Extension Format

At the top in the Fields section, provide a User Field and Column Name for each user attribute to include in the export. For example:

User Field Column Name
email Email Address
created_at Created At
given_name First Name
family_name Last Name

User Import/Export Extension Fields

After adding the user fields, click on the Export Users button to start the export. Once the export is complete, download the CSV file to use in the following section.

1. Create a new application

Import a user data file

To import the user data file to Marketo, perform a POST request to the Bulk Leads endpoint. Set the content-type header of the request to multipart/form-data and include a file parameter with your exported CSV file as well as format parameter set to csv. For example:

The response should look something like this:

You can check the status of your import using the Get Import Lead Status API and your import job's batchId. For example:

And the response:

That's it! You successfully imported your Auth0 users into Marketo.