Skip to content

Function: getDuplicatedUsersCount() ​

ts
function getDuplicatedUsersCount(
   client, 
   parameters?, 
   options?
): Promise<{
[key: string]: unknown;
  active?: boolean;
  applicationRoles?: {
   [key: string]: unknown;
     callback?: {
      [key: string]: unknown;
     };
     maxResults?: number;
     pagingCallback?: {
      [key: string]: unknown;
     };
     size?: number;
  };
  avatarUrls?: Record<string, string>;
  deleted?: boolean;
  displayName?: string;
  emailAddress?: string;
  expand?: string;
  groups?: {
   [key: string]: unknown;
     callback?: {
      [key: string]: unknown;
     };
     maxResults?: number;
     pagingCallback?: {
      [key: string]: unknown;
     };
     size?: number;
  };
  key?: string;
  lastLoginTime?: string;
  locale?: string;
  name?: string;
  self?: string;
  timeZone?: string;
}>;

Defined in: src/server/api/users.ts:556

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

Parameters ​

ParameterTypeDescription
clientClient-
parameters?{ flush?: boolean; }-
parameters.flush?booleanIf set to true forces cache flush, user must be sysadmin for this parameter to have an effect.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; active?: boolean; applicationRoles?: { [key: string]: unknown; callback?: { [key: string]: unknown; }; maxResults?: number; pagingCallback?: { [key: string]: unknown; }; size?: number; }; avatarUrls?: Record<string, string>; deleted?: boolean; displayName?: string; emailAddress?: string; expand?: string; groups?: { [key: string]: unknown; callback?: { [key: string]: unknown; }; maxResults?: number; pagingCallback?: { [key: string]: unknown; }; size?: number; }; key?: string; lastLoginTime?: string; locale?: string; name?: string; self?: string; timeZone?: string; }>