Skip to content

Function: getUserStats() ​

ts
function getUserStats(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  accountStatus?: object[];
  roles?: object[];
}>;

Defined in: src/admin/api/users.ts:366

Return user stats for the organization.

Scopes ​

Authorization scopes required: read:directories:admin

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ directoryId: string; orgId: string; }-
parameters.directoryIdstringUnique ID associated with a directory. The - character can be used to increase the operation scope to all directories the requestor has permission to manage.
parameters.orgId?stringYour organization has a unique ID. Find this ID in your Atlassian Administration URL or when you create your API key.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; accountStatus?: object[]; roles?: object[]; }>