# Set variables from outside of Postman (local script)

**URL:** <https://community.postman.com/t/set-variables-from-outside-of-postman-local-script/18201>\
**Category:** Help Hub\
**Tags:** variables\
**Created:** [December 3, 2020, 2:39pm UTC](https://community.postman.com/t/set-variables-from-outside-of-postman-local-script/18201 "2020-12-03T14:39:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [December 4, 2020, 12:28pm UTC](https://community.postman.com/t/set-variables-from-outside-of-postman-local-script/18201/2 "2020-12-04T12:28:55Z")

</div>

You can take a look at this post and see if it does what you’re wanting:

> [@Medium Article: How to Automate OAuth2 Token Renewal in Postman](https://community.postman.com/t/medium-article-how-to-automate-oauth2-token-renewal-in-postman/6630):
>
> Hey everyone, I have seen on a number of forums and stack overflow articles people expressing their frustration with the manual process Postman has for renewing OAuth2 tokens when they expire. I thought I would share a write up I did to help you get past the manual process and have your tokens renewing automatically. Let me know what you think!

---

_[View the full topic](https://community.postman.com/t/set-variables-from-outside-of-postman-local-script/18201)._
