---
ai:
  exclude: true
search:
  tags:
    - user
    - GET
seo:
  description: >-
    Returns a list of users that match the… Reference for the GET
    /api/2/user/duplicated/count endpoint in the Jira Software Data Center REST
    API Reference.
sidebar:
  label: Get duplicated users count
  badge: GET
title: Get duplicated users count
type: openapi-operation
---
Returns a list of users that match the search string. This resource cannot be accessed anonymously.
Duplicated means that the user has an account in more than one directory
and either more than one account is active or the only active account does not belong to the directory
with the highest priority.
The data returned by this endpoint is cached for 10 minutes and the cache is flushed when any User Directory
is added, removed, enabled, disabled, or synchronized.
A System Administrator can also flush the cache manually.
Related JAC ticket: https://jira.atlassian.com/browse/JRASERVER-68797

`GET /api/2/user/duplicated/count`

**Responses**

- `200` — Returns a list of users that match the search string.
- `401` — Returned if the current user is not authenticated.
- `404` — Returned if the requested user is not found.

Response example, 200:

```json
{
  "active": true,
  "applicationRoles": [
    "jira-core",
    "jira-admin",
    "important"
  ],
  "avatarUrls": {
    "48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
    "24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
    "16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
    "32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
  },
  "deleted": false,
  "displayName": "Fred F. User",
  "emailAddress": "fred@example.com",
  "expand": "string",
  "groups": {
    "callback": {},
    "maxResults": 0,
    "pagingCallback": {},
    "size": 0
  },
  "key": "JIRAUSER10100",
  "lastLoginTime": "2023-08-30T16:37:01+1000",
  "locale": "en_AU",
  "name": "fred",
  "self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
  "timeZone": "Australia/Sydney"
}
```
