Search code examples
azureazure-devopsautomation

Configuring Email notification alert for Azure Devops PAT token expiration


Im working on PAT Lifecycle Management API to get details of PATs in an Azure Devops Organization and send a remainder mail to team on expiring PATs

Im able to get the PAT details but how can I automate sending a notification for the team before a month or week of it's expiry


Solution

  • Based on this document, Users receive two notifications during the lifetime of a PAT - one upon creation and the other seven days before the expiration.

    Currently there is no built-in way to send notification email to team on expiring PATs. For this, you may access this URL: https://aka.ms/AzDevOpsIdeas to submit any comments and proposals for future releases and implementations.

    By the way, if you are using this API to list the PATs in an organization, please be noted that you will only get the details of the PATs that created by the user who generated the bearer token for authentication to call the API, rather than all the PATs of all users in this organization.