Skip to content

Function: getUsers() ​

ts
function getUsers(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  itemsPerPage?: number;
  Resources?: object[];
  schemas?: string[];
  startIndex?: number;
  totalResults?: number;
}>;

Defined in: src/userProvisioning/api/users.ts:126

Get users from the specified directory. Filtering is supported with a single exact match (eq) against the userName and externalId attributes.

Note: While this API enables pagination, sorting functionality is not supported.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ attributes?: string; count?: number; directoryId: string; excludedAttributes?: string; filter?: string; startIndex?: number; }-
parameters.attributes?stringResource attributes to be included in response. Mutually exclusive from excludedAttributes. Example: userName,emails.value
parameters.count?numberDesired maximum number of query results in the list response page.
parameters.directoryId?stringThe SCIM base URL that is generated when conecting an identity provider with SCIM provisioning.
parameters.excludedAttributes?stringResource attributes to be excluded from response. Mutually exclusive from attributes. Example: timezone,emails.type,department
parameters.filter?stringFilter for userName or externalId. Example: userName eq "Atlassian"
parameters.startIndex?numberA 1-based index of the first query result.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; itemsPerPage?: number; Resources?: object[]; schemas?: string[]; startIndex?: number; totalResults?: number; }>