# Having issues with authentication when running Postman collection

**URL:** <https://community.postman.com/t/having-issues-with-authentication-when-running-postman-collection/70592>\
**Category:** Help Hub\
**Tags:** collections, authentication, webhook\
**Created:** [October 29, 2024, 7:00pm UTC](https://community.postman.com/t/having-issues-with-authentication-when-running-postman-collection/70592 "2024-10-29T19:00:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![duartepresa](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@duartepresa](https://community.postman.com/u/duartepresa)\
**Post date:** [October 29, 2024, 7:00pm UTC](https://community.postman.com/t/having-issues-with-authentication-when-running-postman-collection/70592/1 "2024-10-29T19:00:23Z")

</div>

I’m working with a Postman collection for SAP C4C APIs, where I’ve configured all necessary authentication, including CSRF tokens. The collection runs successfully when executed manually in Postman, but fails with a 403 Forbidden error when triggered via webhook.

What kind of authentication adaptations or settings should I apply to make sure the collection can execute properly when triggered by a webhook? Any insights into how webhook-triggered runs handle authentication differently would be appreciated.

Cheers.

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [October 30, 2024, 4:54pm UTC](https://community.postman.com/t/having-issues-with-authentication-when-running-postman-collection/70592/2 "2024-10-30T16:54:36Z")

</div>

Hi @duartepresa. Welcome to the Postman Community. :postman_logo:

A 403 error does not look like an authentication error. It looks to me like the server is blocking this request from the webhook for some reason. I am not sure why that’s the case, but you may want to double-check to be sure.

---

<div class="post-metadata">

**Author:** ![duartepresa](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@duartepresa](https://community.postman.com/u/duartepresa)\
**Post date:** [October 30, 2024, 5:05pm UTC](https://community.postman.com/t/having-issues-with-authentication-when-running-postman-collection/70592/3 "2024-10-30T17:05:58Z")

</div>

Hi!

Not sure how to check that, but I believe that the CSRF Token (a header) is blocking the request. However, it works fine when triggered directly.

Does Postman not retain the session and authentications with a webhook-triggered run? Because at the collection level everything is working as expected.

Might this be related to Cookies? I don’t have the Interceptor on (due to admin blocks). Is it necessary?

Thanks.

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [November 1, 2024, 12:20am UTC](https://community.postman.com/t/having-issues-with-authentication-when-running-postman-collection/70592/4 "2024-11-01T00:20:06Z")

</div>

@duartepresa Can you share a screenshot of how authentication is set up?

For example, If these credentials are stored in the current value of a collection variable, it won’t make it to the triggered webhook.

---

<div class="post-metadata">

**Author:** ![duartepresa](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@duartepresa](https://community.postman.com/u/duartepresa)\
**Post date:** [November 3, 2024, 12:41pm UTC](https://community.postman.com/t/having-issues-with-authentication-when-running-postman-collection/70592/5 "2024-11-03T12:41:34Z")

</div>

@gbadebo-bello the stored variables are on the environment level. The remaining headers are hard-coded.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 3, 2024, 12:42pm UTC](https://community.postman.com/t/having-issues-with-authentication-when-running-postman-collection/70592/6 "2024-12-03T12:42:25Z")

</div>

Closed on December 3, 2024, 12:42pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
