---
title: "POST /core/users/export/"
method: POST
path: "/core/users/export/"
tags: ["core"]
---

# POST /core/users/export/

`POST /core/users/export/`

Create a data export for this data type. Note that the export is generated asynchronously:
this method returns a `DataExport` object that will initially have `completed=false` as well
as the permanent URL to that object in the `Location` header.
You can poll that URL until `completed=true`, at which point the `file_url` property will
contain a URL to download

## Query parameters

- `attributes` string
- `date_joined` string, date-time
- `date_joined__gt` string, date-time
- `date_joined__lt` string, date-time
- `email` string
- `groups_by_name` string[]
- `groups_by_pk` string[]
- `is_active` boolean
- `is_superuser` boolean
- `last_login` string, date-time
- `last_login__gt` string, date-time
- `last_login__isnull` boolean
- `last_login__lt` string, date-time
- `last_updated` string, date-time
- `last_updated__gt` string, date-time
- `last_updated__lt` string, date-time
- `name` string
- `ordering` string
- `path` string
- `path_startswith` string
- `roles_by_name` string[]
- `roles_by_pk` string[]
- `search` string
- `type` UserTypeEnum[]
- `username` string
- `uuid` string, uuid

## Response `201`

- DataExport — Mixin to validate that a valid enterprise license exists before allowing to save the object
  - `id` string, uuid, required
  - `requested_by` PartialUser, required — Partial User Serializer, does not include child relations.
    - `pk` integer, required
    - `username` string, required — Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
    - `name` string, required — User's display name.
    - `is_active` boolean — Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
    - `last_login` string, date-time, nullable
    - `email` string, email
    - `attributes` object
    - `uid` string, required
  - `requested_on` string, date-time, required
  - `content_type` ContentType, required
    - `id` integer, required
    - `app_label` string, required
    - `model` string, required
    - `verbose_name_plural` string, required
    - `fully_qualified_model` string, required
  - `query_params` object, required
  - `file_url` string, required
  - `completed` boolean, required

## Other responses

- `400`
- `403`

---

[API](https://skmtc.dev/goauthentik/apis/authentik.md) · [All operations](https://skmtc.dev/goauthentik/apis/authentik/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goauthentik/authentik/revisions/4e42e86021d7/schema)
