Uploaded image for project: 'Identity'
  1. Identity
  2. ID-6965

Provide user management API for last login for a product or site

    XMLWordPrintable

Details

    • 3
    • 81
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Atlassian Update – 20 March 2023

      Hi all,

      The API is now in Beta you can access it here: https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-orgs-orgid-directory-users-accountid-last-active-dates-get

      If you would like to provide feedback on the API please email me at sscorse@atlassian.com

      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

              2015ae912494 Stefan Scorse
              5c52eb0b9d04 Ben Carson
              Votes:
              358 Vote for this issue
              Watchers:
              205 Start watching this issue

              Dates

                Created:
                Updated: