# Manual collection test passes but scheduled test with the same collection returns 401 unauthorized

**URL:** <https://community.postman.com/t/manual-collection-test-passes-but-scheduled-test-with-the-same-collection-returns-401-unauthorized/46329>\
**Category:** Help Hub\
**Tags:** tests, collections, authentication\
**Created:** [April 13, 2023, 4:33pm UTC](https://community.postman.com/t/manual-collection-test-passes-but-scheduled-test-with-the-same-collection-returns-401-unauthorized/46329 "2023-04-13T16:33:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![idrisyarkin](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@idrisyarkin](https://community.postman.com/u/idrisyarkin)\
**Post date:** [April 13, 2023, 4:33pm UTC](https://community.postman.com/t/manual-collection-test-passes-but-scheduled-test-with-the-same-collection-returns-401-unauthorized/46329/1 "2023-04-13T16:33:21Z")

</div>

Hi, I have a collection that passes when I run manually, but when I run the same collection as scheduled it fails and gives 401 unauthorized. looking for assistance. thanks

---

<div class="post-metadata">

**Author:** ![marklelapin](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@marklelapin](https://community.postman.com/u/marklelapin)\
**Post date:** [June 16, 2023, 8:52am UTC](https://community.postman.com/t/manual-collection-test-passes-but-scheduled-test-with-the-same-collection-returns-401-unauthorized/46329/2 "2023-06-16T08:52:14Z")

</div>

Did you get anywhere with this? I have the same problem but cant find any solutions online?  
Thanks

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [June 16, 2023, 10:46am UTC](https://community.postman.com/t/manual-collection-test-passes-but-scheduled-test-with-the-same-collection-returns-401-unauthorized/46329/3 "2023-06-16T10:46:02Z")

</div>

Are you going to show us how you have setup the authorization for the collection\requests?

Scheduled runs are executed from the Postman Cloud. Which means that Postman Cloud must have access to your authorization endpoints.

Enterprise licences allow you to have a static IP for the Postman Cloud that you can whitelist just in case this is the issue.

---

<div class="post-metadata">

**Author:** ![marklelapin](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@marklelapin](https://community.postman.com/u/marklelapin)\
**Post date:** [June 17, 2023, 4:52am UTC](https://community.postman.com/t/manual-collection-test-passes-but-scheduled-test-with-the-same-collection-returns-401-unauthorized/46329/4 "2023-06-17T04:52:39Z")

</div>

Thanks! Having looked into it I’m pretty certain that’s my problem now but i’m principally training at the moment so probably wont get the enterprise licence or professional licence to fully confirm. Much appreciated.
