Skip to main content

Count non-compliant personal access tokens

GET 

/api/v4/users/tokens/non_compliant/count

Count the active personal access tokens that violate the configured ServiceSettings.MaximumPersonalAccessTokenLifetimeDays policy (tokens that never expire or expire beyond the cap). Bot account tokens are exempt and never counted. Returns 0 when no maximum lifetime is configured.

Minimum server version: 11.1

Permissions

Must have manage_system permission.

Responses

Count retrieved successfully