jira.js
    Preparing search index...

    Function getUserLastActiveDates

    • 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_access response field will be empty.

      Learn the fastest way to call the API with a detailed tutorial.

      Parameters

      • client: Client
      • parameters: { accountId: string; cursor?: string; orgId: string }
        • 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.

        • Optionalcursor?: string

          Cursor to fetch the next page

        • orgId: string

          Your organization has a unique ID. Find this ID in your Atlassian Administration URL or when you create your API key.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              data?: {
                  added_to_org?: string
                  | null;
                  added_to_org_timestamp?: Date | null;
                  product_access: {
                      id: string;
                      key:
                          | string & {}
                          | "jira-software"
                          | "jira-service-desk"
                          | "jira-core"
                          | "jira-ops"
                          | "stride"
                          | "hipchat"
                          | "confluence"
                          | "bitbucket"
                          | "trello"
                          | "opsgenie"
                          | "statuspage";
                      last_active?: string;
                      last_active_timestamp?: Date;
                      [key: string]: unknown;
                  }[];
                  [key: string]: unknown;
              };
              links?: { next?: string
              | null; [key: string]: unknown };
              [key: string]: unknown;
          },
      >