Is there a way to prevent expiration of an Azure DevOps Personal Access Token (PAT)?

Viewed 4667

Context: Within an Azure DevOps user's Personal Access Token (PAT) settings, there is the ability to scope the Organization the token has access to and set an Expiration date up to one year.

Question: Is there a way in settings/options to prevent expiration or automate token regeneration? Supplementary question (opinion), is that a bad idea?

1 Answers

Each PAT has a expired date, the default period is 30 days and the maximum period is one year.

If the PAT created at the beginning is 90 day, when it expires, you can choose to change to 180 days or 1 year. But if you start in 1 year and expire soon after one year, you can only add one more token.

In addition ,the following notification is sent - a PAT is near expiration.

This is intended to prevent PAT from being leaked to pose a threat to the user's personal information security in its long-term use.

Updating PAT in a timely manner helps protect your information.

Related