---
title: "Convert user identifiers to account IDs in JQL queries"
method: POST
path: "/rest/api/2/jql/pdcleaner"
tags: ["JQL"]
---

# Convert user identifiers to account IDs in JQL queries

`POST /rest/api/2/jql/pdcleaner`

Converts one or more JQL queries with user identifiers (username or user key) to equivalent JQL queries with account IDs.

You may wish to use this operation if your system stores JQL queries and you want to make them GDPR-compliant. For more information about GDPR-related changes, see the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/).

**[Permissions](#permissions) required:** Permission to access Jira.

## Request body

- JQLPersonalDataMigrationRequest — The JQL queries to be converted.
  - `queryStrings` string[] — A list of queries with user identifiers. Maximum of 100 queries.

## Response `200`

Returned if the request is successful. Note that the JQL queries are returned in the same order that they were passed.

- ConvertedJQLQueries — The converted JQL queries.
  - `queriesWithUnknownUsers` JQLQueryWithUnknownUsers[] — List of queries containing user information that could not be mapped to an existing user
    - `convertedQuery` string — The converted query, with accountIDs instead of user identifiers, or 'unknown' for users that could not be found
    - `originalQuery` string — The original query, for reference
  - `queryStrings` string[] — The list of converted query strings with account IDs in place of user identifiers.

## Other responses

- `400` — Returned if at least one of the queries cannot be converted. For example, the JQL has invalid operators or invalid keywords, or the users in the query cannot be found.
- `401` — Returned if the authentication credentials are incorrect or missing.

---

[API](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api/versions/a26541c2f8bd/schema)
