
mustafam.41248 (Customer) asked a question.
Hello Okta people,
I have a task to extend the life span of the password reset email for my end users, I followed this article
and when i send the the request to get the policies I'll get all the 3 that I have but when I modify the value of tokenLifetimeMinutes to the required one and POST it the respose in postman will show 200 which is OK but then when i run another get it will still shows 60 minutes.
I saw another post from another admin in here:
and no one helped as you can see.
any help with that would be appreciated

Hi @mustafam.41248 (Customer) , Thank you for reaching out to the Okta Community!
This not currently officially supported as stated in the article:
NOTE: This is just an example. This information should be used at one's own discretion and risk, as the steps could change whenever a product update is released. Okta strongly advises against deploying this in production environments. It is highly recommended to test this in a test/preview environment. All instructions are provided AS IS without warranty of any kind. Okta disclaims all implied warranties, including, without limitation, any implied warranties for a particular purpose.
That being said, you will need to get one policy at a time. So you will need to run the GET Password Policies call once to get all the intended IDs.
Example:
Policy 1 - id: 0aasdfasgadd7
Policy 2 - id: 0aaasdqdsqd8
Policy 3 - id: 0azvadsvadfo9
Once you get the IDs , you will need to get the policy body for the first one by running a similar call as before but this time for the intended ID instead of ?type=PASSWORD . Something like:
{{url}}/api/v1/policies/0aasdfasgadd7 - for policy 1
copy the body
make changes to the tokenLifetimeMinutes value
then run Update Password Policy call:
PUT {{url}}/api/v1/policies/0aasdfasgadd7 where you add the updated body of the request
Then you repeat the process for each intended policy modifying IDs and token values are required.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--
Help others in the community by liking or hitting Select as Best if this response helped you.
Collect them all. Learn a new skill and earn a new Okta Learning badge.
Just released: More Okta Community badges just added