Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

limit expiry time of personal access tokens

Tony Rice
Contributor
October 24, 2022

How can I limit my users to creating personal access tokens with no more than 90 day expiry and disallow tokens with no expiration.

1 answer

0 votes
Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2022

Hi @Tony Rice

 

You can use this system property -Datlassian.pats.max.tokens.expiry.days=90. This property will set the maximum number of days for a token to expire. If you decided to change this property, the new value will apply only to tokens created after your change and won't affect already created tokens.

 

https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html 

https://confluence.atlassian.com/adminjiraserver/setting-properties-and-options-on-startup-938847831.html#Settingpropertiesandoptionsonstartup-startup_params 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.10
TAGS
AUG Leaders

Atlassian Community Events