Function: getUserLastActiveDates()
ts
function getUserLastActiveDates(
client,
parameters,
options?
): Promise<{
[key: string]: unknown;
data?: {
[key: string]: unknown;
added_to_org?: string | null;
added_to_org_timestamp?: Date | null;
product_access: object[];
};
links?: {
[key: string]: unknown;
next?: string | null;
};
}>;Defined in: src/admin/api/users.ts:396
Additional response parameters of the API (for e.g., added_to_org) are available only to customers using the new user management experience. Learn more about the new user management experience.
Specifications:
- Return a user’s last active date for each product listed in Atlassian Administration.
- Active is defined as viewing a product's page for a minimum of 2 seconds.
- The data for the last activity may be delayed by up to 24 hours.
- If the user has not accessed a product, the
product_accessresponse field will be empty.
Learn the fastest way to call the API with a detailed tutorial.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { accountId: string; cursor?: string; orgId: string; } | - |
parameters.accountId | string | Unique ID of the user's account. Use the Jira User Search API to get the accountId (if Jira is available for your Organization). Jira APIs use a different authentication method . If you don’t have Jira, export a .csv of the user list. Learn how to export users from a site. |
parameters.cursor? | string | Cursor to fetch the next page |
parameters.orgId? | string | Your 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; data?: { [key: string]: unknown; added_to_org?: string | null; added_to_org_timestamp?: Date | null; product_access: object[]; }; links?: { [key: string]: unknown; next?: string | null; }; }>