Skip to main content

What is the difference between lastActive and lastLogin?

Issue

I want to understand the difference between lastActive and lastLogin for organization members in the Sentry API, including when each field is updated and which one reflects recent activity versus a login.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • API

  • Organization Members

Resolution

The lastActive and lastLogin timestamps represent different types of activity and are returned under the nested user object in organization member responses.

lastLogin is updated when a user successfully logs in to Sentry. It represents their most recent successful sign-in.

lastActive reflects activity that Sentry records for the user, such as logging their IP address while they’re using the Sentry UI in an authenticated session. Because of this, lastActive can be updated while a user is actively working in Sentry without logging in again.

For example, a user might have a recent lastActive timestamp from working in the Sentry UI, while their lastLogin still reflects the last time they actually signed in.

Keep in mind that lastActive is not updated on every request. Sentry rate-limits how frequently it records user IP activity, so the timestamp may lag slightly behind the user’s actual activity.

You can find these fields when you list organization members.

Did this answer your question?