Add last_used_at value to PATs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem to Solve

We are introducing the concept of a credential inventory via #36742 (closed) and discovered PATs lack the appropriate values to provide adequate insight into their usage. Specifically, we should be able to tell customers when a PAT was last used.

Additional Detail

The PAT/SSH Inventory cannot currently sort by "last used" since PATs lack this detail. This type of information can be important during an audit of specific events or incidents.

Use Cases

  • As an administrator, I need to pull evidence artifacts of access control and management for an auditor to review.
  • As an administrator, I need to see who is accessing GitLab and when that access occurs.
  • As an administrator, I am investigating unexpected activity that occurred within GitLab using a PAT.

Proposal

Add last_used_at value to PATs to support the listed use cases.

Edited Jul 03, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading