# Bulk user-export job returns invalid AWS S3 URL

**URL:** <https://community.auth0.com/t/bulk-user-export-job-returns-invalid-aws-s3-url/81486>\
**Category:** Get Help\
**Tags:** export-user\
**Created:** [April 8, 2022, 9:29pm UTC](https://community.auth0.com/t/bulk-user-export-job-returns-invalid-aws-s3-url/81486 "2022-04-08T21:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alec.thilenius](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alec.thilenius/32/33806_2.png) [@alec.thilenius](https://community.auth0.com/u/alec.thilenius)\
**Post date:** [April 8, 2022, 9:29pm UTC](https://community.auth0.com/t/bulk-user-export-job-returns-invalid-aws-s3-url/81486/1 "2022-04-08T21:29:59Z")

</div>

Hi! I’m unable to export users from my tenant using the V2 management API. I can successfully (using [GitHub - auth0/node-auth0: Node.js client library for the Auth0 platform.](https://github.com/auth0/node-auth0)):

- Get a token
- Call the users export job endpoint, returning a job ID
- Wait for the job to complete, which returns a `location` field, looks to be a signed S3 file.

However AWS says the token (in the `location` field) is either malformed or invalid. This is true regardless of CSV or JSON format being selected. What’s more confusing, is that using either the ‘user import/export extension’, or calling the API via the [Auth0 Management API v2](https://auth0.com/docs/api/management/v2) UI, the `location` field in Chrome downloads a file called `<tenant>.circ`, which is some unknown binary format.

I’ve also tried creating an entirely new tenant, with 2 users and trying to export. Same results.

Alec

Edit: Full repro steps below

- Create Tenant (US, Dev)
- Crate 2 users (DB)
- Create Application, add `Auth0 Management API` API to it
- Copy “Getting an access token for your API” `curl` command and exec, copy token
- Navigate to [Auth0 Management API v2](https://auth0.com/docs/api/management/v2), “SET API TOKEN” and paste the token
- Back in tenant settings, go to “Authentication” → “Database” → “Username-Password\_Authentication”
  - Copy DB ID (looks like `con_<alpha-numberic>`)

- [post\_users\_exports](https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports) paste the below into “Paramaters” and click “TRY”.

```json
{
  "connection_id": "<copied from previous step>",
  "format": "csv",
  "limit": 5,
  "fields": [
    {
      "name": "email",
      "export_as": "email"
    }
  ]
}

```

- Copy the `job_id` field (looks like `job_<alpha-numeric>`)
- get\_jobs\_by\_id and paste the job ID into the `id` parameter. Click "TRY’
- Copy the `location` field (looks like a signed URL to an S3 bucket) into Chrome.
- Downloads some binary fine. Same things happens if you use the import/export plugin.

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [April 9, 2022, 2:41pm UTC](https://community.auth0.com/t/bulk-user-export-job-returns-invalid-aws-s3-url/81486/2 "2022-04-09T14:41:40Z")

</div>

Hi @alec.thilenius

Welcome to the Auth0 community !!!

Please raise a support ticket from Auth0 Dashboard to get better support from our support engineers.

Thanks  
Jeff

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 28, 2022, 10:08am UTC](https://community.auth0.com/t/bulk-user-export-job-returns-invalid-aws-s3-url/81486/3 "2022-04-28T10:08:41Z")

</div>


