Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-33225

Add lastLogin to user REST API

    XMLWordPrintable

Details

    • 180
    • 10
    • Hide
      Atlassian Update – 16 October 2023

      Dear Customers,
      A quick update on this ticket.

      Thank you for taking the time to file the suggestion and being actively engaged with it. We've reviewed it and agree it's a high priority for us to solve. Our engineers have already started working on potential improvements.

      Please continue watching this ticket for future updates and changes in the timeline that may impact your work.

      Stay tuned for more soon!
      Thank you.

      Best regards

      Jakub Sildatk
      Jira DC Software Engineer

      Show
      Atlassian Update – 16 October 2023 Dear Customers, A quick update on this ticket. Thank you for taking the time to file the suggestion and being actively engaged with it. We've reviewed it and agree it's a high priority for us to solve. Our engineers have already started working on potential improvements. Please continue watching this ticket for future updates and changes in the timeline that may impact your work. Stay tuned for more soon! Thank you. Best regards Jakub Sildatk Jira DC Software Engineer
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      To help with administration, it'd be helpful to have the lastLogin property of a user exposed through the REST interface.

      Example, when calling /rest/api/2/user?username, the response would include lastLogin:

      {
          "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
          "name": "fred",
          "emailAddress": "fred@example.com",
          "avatarUrls": {
              "24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
              "16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
              "32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred",
              "48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred"
          },
          "displayName": "Fred F. User",
          "active": true,
          "timeZone": "Australia/Sydney",
          "lastLogin": "2011-07-05T11:05:00.000+0000"
          "groups": {
              "size": 3,
              "items": [
                  {
                      "name": "jira-user",
                      "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-user"
                  },
                  {
                      "name": "jira-admin",
                      "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-admin"
                  },
                  {
                      "name": "important",
                      "self": "http://www.example.com/jira/rest/api/2/group?groupname=important"
                  }
              ]
          },
          "expand": "groups"
      }
      

      Attachments

        Issue Links

          Activity

            People

              9e3a0496a19c Jakub Sildatk
              5c52eb0b9d04 Ben Carson
              Votes:
              466 Vote for this issue
              Watchers:
              249 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: