Is there a way to add user query/filter to the export user job API

I am using the export job api to create a job that exports all the users.
I am passing the body as below
body = {
“connection_id”: connection_id,
“format”: “json”,
“fields”: [
“name”: “username”
“name”: “blocked”
“name”: “email”
job =

is there a way i can export only a subset of the users using a query or filter? Also in the exported file is it possible to replace the attribute key with a custom alias?


Hi @SelvaPrasad

I don’t know of a way to filter the users on export, but it is a fairly fast process so you could just export the users then process the file to remove those you don’t want (and do any renaming as well).