# Reset basic authorization password for ALL collections

**URL:** <https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298>\
**Category:** Help Hub\
**Created:** [April 6, 2021, 6:50am UTC](https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298 "2021-04-06T06:50:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![misi01](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@misi01](https://community.postman.com/u/misi01)\
**Post date:** [April 6, 2021, 6:50am UTC](https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298/1 "2021-04-06T06:50:32Z")

</div>

So I work at a place where I **have** to change my password every 3 months. Since all my Postman collections access the same server (mainframe), this entails changing that password for every single collection.  
Is there a way to do this I’m missing ('cos I couldn’t find anything)

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [April 6, 2021, 7:43am UTC](https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298/2 "2021-04-06T07:43:56Z")

</div>

@misi01 Not sure you have tried this option, did you tried using [global variable](https://learning.postman.com/docs/sending-requests/variables/#variable-scopes) for it? incase if all the collections are in same workspace 😊

---

<div class="post-metadata">

**Author:** ![misi01](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@misi01](https://community.postman.com/u/misi01)\
**Post date:** [April 6, 2021, 8:05am UTC](https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298/3 "2021-04-06T08:05:23Z")

</div>

a) All collections in same workspace.  
b) Saw some sort of reference about global variables, but to much of a beginner to dare trying to set this since I don’t know how (hint, hint 😀)

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [April 6, 2021, 8:18am UTC](https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298/4 "2021-04-06T08:18:34Z")

</div>

I get that 😃 We too started from there once upon a time 😛

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/a/aa5298a0c18269d3ae56607579c5cd6d70d2dfb4.png)

Something like this!! you can refer the credentials from here instead of collection variable.

Please go through this link below more details.

> **[Using variables](https://learning.postman.com/docs/sending-requests/variables/#variable-scopes)**

---

<div class="post-metadata">

**Author:** ![misi01](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@misi01](https://community.postman.com/u/misi01)\
**Post date:** [April 6, 2021, 10:47am UTC](https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298/5 "2021-04-06T10:47:50Z")

</div>

Thank you. I defined my password as a global one, then changed the basic auth password in my request to {{password}} and that seemed to do the trick nicely.

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [April 6, 2021, 11:05am UTC](https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298/6 "2021-04-06T11:05:20Z")

</div>

@misi01 Great to know, usually it’s not advisable to have the credentials as part of global variables (Monitors don’t have access to global variables). But in your case, that’s the easiest fix. Mostly it depends on your requirement. Just informing you!!

If I come across any other solution will let you know 👍

---

<div class="post-metadata">

**Author:** ![pranavdavar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pranavdavar/32/9152_2.png) [@pranavdavar](https://community.postman.com/u/pranavdavar)\
**Post date:** [April 6, 2021, 2:59pm UTC](https://community.postman.com/t/reset-basic-authorization-password-for-all-collections/22298/7 "2021-04-06T14:59:40Z")

</div>

@misi01, You can save values of hostnames and credentials in environment variables and create different environments for different environments like dev, stage or prod.

Hope this helps 🙂
