API - lastLoginDate should be searchable / filterable

XMLWordPrintable

    • 2

      Problem

      Using API GET /align/api/2/Users , you cannot filter users by lastLoginDate 

      Example: not having this Feature makes it hard to identify users who have not logged into Jira Align in the last X days.

      Suggested Solutions

      This field should be searchable, similar to lastUpdatedDate 

      Current Workarounds

      • You can export all the users and then manually filter the results by LastLoginDate
      • or if you have enterprise Insights you can use the query to return the userID and other relevant information for all users that haven't logged into Jira Align in the past 90 days. 
      • SELECT
            u.[Username] as 'userID',
            u.[First Name] as 'First Name',
            u.[Last Name] as 'Last Name',
            u.[email] as 'Email',
            uf.[login timestamp] as 'Last Login Time'
        FROM current_dw.[user login fact] uf
            INNER JOIN (
                SELECT [FK User ID], max([login timestamp]) as MaxDate
                FROM current_dw.[user login fact]
                GROUP BY [FK User ID]
            ) time_stamp ON uf.[FK User ID] = time_stamp.[FK User ID] and uf.[login timestamp] = time_stamp.MaxDate
            INNER JOIN current_dw.[user] u ON uf.[fk user id] = u.[user id]
            AND uf.[login timestamp] <= DATEADD(day, -90, GETDATE())
            AND u.[User Active Flag] = 'YES'
        ORDER BY uf.[login timestamp] DESC 

              Assignee:
              Kyle Foreman (Inactive)
              Reporter:
              Victor Fragoso
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: