---
updatedAt: 2026-04-16T18:20:44.000Z
---

# Bulk Export Users

**Required Role:** Admin Portal or Admin API Consumer


Bulk exports the list of users for an account based on the criteria provided.

If the optional `folderId` query parameter is provided, users within that folder **and all of its subfolders
(recursively)** will be exported.

Will trigger an asynchronous job, the status of which should be monitored via `/jobs/{jobId}`.

Once the job has completed, the file can be downloaded using the API `/jobs/{jobId}/exported-users`.


# OpenAPI definition

```json
{
  "openapi": "3.1.1",
  "info": {
    "title": "User Management",
    "description": "APIs for creating, updating and retrieving individual users.\n",
    "version": "0.0.1",
    "contact": {
      "name": "Avaya API Team",
      "url": "https://developers.avayacloud.com/avaya-infinity/"
    },
    "license": {
      "name": "Avaya Software Development Kit (SDK) Software License Terms",
      "url": "https://support.avaya.com/css/P8/documents/101038288"
    }
  },
  "servers": [
    {
      "url": "https://core.{customerId}.ec.avayacloud.com/api/config/v1",
      "description": "Production",
      "variables": {
        "customerId": {
          "description": "Your organization identifier",
          "default": "your-org-id"
        }
      }
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Bulk User",
      "description": "Bulk operations related to Users: Add, Update, Export.\n"
    }
  ],
  "paths": {
    "/users:bulk-export": {
      "post": {
        "tags": [
          "Bulk User"
        ],
        "summary": "Bulk Export Users",
        "description": "**Required Role:** Admin Portal or Admin API Consumer\n\n\nBulk exports the list of users for an account based on the criteria provided.\n\nIf the optional `folderId` query parameter is provided, users within that folder **and all of its subfolders\n(recursively)** will be exported.\n\nWill trigger an asynchronous job, the status of which should be monitored via `/jobs/{jobId}`.\n\nOnce the job has completed, the file can be downloaded using the API `/jobs/{jobId}/exported-users`.\n",
        "operationId": "bulkExportUsers",
        "parameters": [
          {
            "$ref": "#/components/parameters/jobName"
          },
          {
            "name": "folderId",
            "in": "query",
            "description": "*(Optional)* Export users from a specific folder **and all its subfolders**.\nProvide the unique 26-character internal id of the folder.\nIf omitted, all users in the account will be included.\n",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FolderId"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkExportOperationResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "default": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "OAuth 2.0 Bearer Token with scoped permissions.\nRequired scopes documented per endpoint.\n"
      }
    },
    "responses": {
      "InternalServerError": {
        "description": "Internal Server Error",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/internal-error",
              "title": "Internal Server Error",
              "status": 500,
              "detail": "An unexpected error occurred while processing your request",
              "requestId": "req_xyz789",
              "timestamp": "2025-12-08T10:30:05Z"
            }
          }
        }
      },
      "BadRequest": {
        "description": "Bad Request",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/constraint-violation",
              "title": "Constraint Violation",
              "status": 400,
              "detail": "Request contains invalid or missing fields",
              "violations": [
                {
                  "field": "accountId",
                  "message": "must match \"^[a-zA-Z]{6}$\"",
                  "code": 20006
                }
              ]
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/unauthorized",
              "title": "Unauthorized",
              "status": 401,
              "detail": "Bearer token expired at 2025-12-08T10:15:00Z. Request a new token.",
              "requestId": "req_xyz789",
              "timestamp": "2025-12-08T10:30:05Z"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/forbidden",
              "title": "Forbidden",
              "status": 403,
              "detail": "Missing required scope: 'workflows:execute'. Your token has: 'workflows:read'",
              "requestId": "req_xyz789",
              "timestamp": "2025-12-08T10:30:05Z"
            }
          }
        }
      }
    },
    "parameters": {
      "jobName": {
        "name": "jobName",
        "in": "query",
        "description": "Optional name that can be provided to identify the job.",
        "required": false,
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "example": "Bulk Job"
        }
      }
    },
    "schemas": {
      "FolderId": {
        "description": "Unique identifier for a folder.",
        "type": "string",
        "pattern": "^073[0-9a-f]{23}$",
        "example": "073d010813b941cf7da111d147"
      },
      "Violation": {
        "type": "object",
        "properties": {
          "field": {
            "description": "The name of the field in the request that caused the violation.\n\nThis can be the name of a path parameter, query parameter, or a field within the request body.\n",
            "type": "string",
            "readOnly": true,
            "example": "jobName"
          },
          "message": {
            "description": "A human-readable explanation specific to this occurrence of the violation.\n",
            "type": "string",
            "readOnly": true,
            "example": "must match \"^[a-zA-Z]{6}$\""
          },
          "code": {
            "description": "The violation code generated by the server for this occurrence of the violation.\n\nUse this code when implementing any error handling logic instead of the message, as the message can change.\n",
            "type": "integer",
            "format": "int32",
            "readOnly": true,
            "example": 20006
          }
        },
        "required": [
          "field",
          "message",
          "code"
        ],
        "example": [
          {
            "field": "emailAddress",
            "message": "must not be null",
            "code": 20002
          }
        ]
      },
      "Problem": {
        "type": "object",
        "description": "<b>Problem Detail</b> is a way to carry machine-readable details of errors in an HTTP\nresponse to avoid the need to define new error response formats for HTTP APIs\n\n<a href=\"https://tools.ietf.org/html/rfc7807\">RFC 7807</a>\n",
        "properties": {
          "type": {
            "description": "An absolute URI that identifies the problem type.\n\nWhen dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).\n",
            "type": "string",
            "format": "uri",
            "readOnly": true,
            "example": "https://developers.avayacloud.com/avaya-infinity/docs/user-management#error-reference"
          },
          "title": {
            "description": "A short, summary of the problem type.\n\nWritten in English and readable for engineers (usually not suited for non technical stakeholders and not localized).\n",
            "type": "string",
            "readOnly": true,
            "example": "Service Unavailable"
          },
          "status": {
            "description": "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
            "type": "integer",
            "format": "int32",
            "minimum": 300,
            "exclusiveMaximum": 600,
            "readOnly": true,
            "example": 503
          },
          "detail": {
            "description": "A human-readable explanation specific to this occurrence of the problem.\n",
            "type": "string",
            "readOnly": true,
            "example": "Connection to database timed out"
          },
          "instance": {
            "description": "An absolute URI that identifies the specific occurrence of the problem.\n\nIt may or may not yield further information if dereferenced.\n",
            "type": "string",
            "format": "uri",
            "readOnly": true
          },
          "violations": {
            "description": "A list of violations that occurred as a result of invalid data provided as part of a request.\n",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Violation"
            },
            "readOnly": true
          }
        }
      },
      "JobId": {
        "description": "Unique ID for a bulk user operation job.",
        "type": "string",
        "format": "uuid",
        "example": "c8c2909d-75e9-484a-94c0-b7e8d30771fe"
      },
      "BulkExportOperationResponse": {
        "description": "Response for a bulk export users operation request having been accepted.",
        "type": "object",
        "required": [
          "jobId",
          "url",
          "downloadUrl"
        ],
        "properties": {
          "jobId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JobId"
              }
            ],
            "readOnly": true
          },
          "url": {
            "description": "URL to get details of the bulk user operation job.",
            "type": "string",
            "example": "/api/config/v1/jobs/c8c2909d-75e9-484a-94c0-b7e8d30771fe",
            "readOnly": true
          },
          "downloadUrl": {
            "description": "URL to download the exported users archive from, once the job has completed.",
            "type": "string",
            "example": "/api/config/v1/jobs/c8c2909d-75e9-484a-94c0-b7e8d30771fe/exported-users",
            "readOnly": true
          }
        },
        "title": "BulkExportOperationResponse"
      }
    }
  }
}
```