logins

Contents

This query allows administrators to access login times for all users they manage. All of the following are included:

  • Successful logins via the Shibumi login page
  • Failed logins via the Shibumi login page
  • Successful logins via SSO

Note that in Shibumi, a single user can have access to multiple enterprises. In that case, the user is actually “managed” by only one of those enterprises. The enterprise that manages a user is based on their email domain; all users with the same email domain will be managed by the same enterprise. When fetching login information via this query, only users who are managed by the current enterprise will be considered.

This query is only accessible to Shibumi enterprise administrators. Other users will receive an error when attempting to run this query.

Results are sorted by login time, with the most recent login returned first.

Query

logins (Connection to LoginAttempt)
Look up past login information. This query has a maximum page size of 100 items.

Argument Type Description
earliest String! Only fetch logins after this date / time. See Date Values for the expected format.
latest String Only fetch logins before this date / time. See Date Values for the expected format.
first Int! See Pagination.
after String See Pagination.

Example

{
  logins(earliest: "2019-07-01T00:00:00Z", first: 100) {
    nodes {
      username
      timestamp
      success
    }
  }
}
{
  "data": {
    "logins": {
      "nodes": [
        {
          "success": true,
          "timestamp": "2019-08-26T20:32:02.515Z",
          "username": "[email protected]"
        },
        {
          "success": true,
          "timestamp": "2019-08-26T20:32:02.515Z",
          "username": "[email protected]"
        }
      ]
    }
  }
}
Updated on September 24, 2025

Related Articles