# Inheriting auth function not working

**URL:** <https://community.postman.com/t/inheriting-auth-function-not-working/21502>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [March 17, 2021, 3:24pm UTC](https://community.postman.com/t/inheriting-auth-function-not-working/21502 "2021-03-17T15:24:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mission-architect-81](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mission-architect-81](https://community.postman.com/u/mission-architect-81)\
**Post date:** [March 17, 2021, 3:24pm UTC](https://community.postman.com/t/inheriting-auth-function-not-working/21502/1 "2021-03-17T15:24:35Z")

</div>

Hey there,

It seems like the inheriting auth function is not working for my collection. I have gone through the process of generating a token and adding my appropriate endpoint to my variable set but when I try to do certain posts I get an

```
{
    "message": "Session expired or invalid",
    "errorCode": "INVALID_SESSION_ID"
}

```

When I switch the Authentification method of this post from “Inherit auth from parent” to Bearer Token and use the same token I had previously generated for my collection, it works … It’s like it’s not actually being inherited…

Any ideas on why this wouldn’t be working …?

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![taehoshino](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/taehoshino/32/6608_2.png) [@taehoshino](https://community.postman.com/u/taehoshino)\
**Post date:** [March 18, 2021, 5:34am UTC](https://community.postman.com/t/inheriting-auth-function-not-working/21502/2 "2021-03-18T05:34:32Z")

</div>

Hey @mission-architect-81! Welcome to the Postman community 🚀

Sorry for the hassle. I understand the token in collection level is not passed to the child request, correct?

Have you saved the collection after setting the token in collection as discussed in the thread below?

> [@Issues with Inherited Auth](https://community.postman.com/t/issues-with-inherited-auth/5033/9):
>
> Turns out you have to SAVE the collection or folder edits before it will update in the children. After the save, the children now show “Using Basic Auth from collection XXXX”.

If the issue persists, please feel free to submit a support request from here 😃

> **[Postman Support Center | Postman Support Center](https://support.postman.com/hc/en-us/requests/new)**
>
> Support Center: Need help? Check out our FAQ, documentation or submit a request.

---

<div class="post-metadata">

**Author:** ![mission-architect-81](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mission-architect-81](https://community.postman.com/u/mission-architect-81)\
**Post date:** [March 18, 2021, 4:39pm UTC](https://community.postman.com/t/inheriting-auth-function-not-working/21502/3 "2021-03-18T16:39:55Z")

</div>

> [@Issues with Inherited Auth](https://community.postman.com/t/issues-with-inherited-auth/5033/9):
>
> n or folder edits before it will update in the children. [[image]](https://us1.discourse-cdn.com/getpostman/original/2X/e/e784783cb64682f28fba4800b2545415c9ed87aa.png) After the save, the children now show “Using Basic Auth from collection XXXX

Hey @taehoshino !

You got it man! Thanks for the help!

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![asinha3](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/asinha3/32/10421_2.png) [@asinha3](https://community.postman.com/u/asinha3)\
**Post date:** [November 22, 2021, 2:38pm UTC](https://community.postman.com/t/inheriting-auth-function-not-working/21502/4 "2021-11-22T14:38:36Z")

</div>

Seems like it can’t inherit the auth from more than ONE level folder structure… I tired 2 level, it failed but when updated a level up folder with api-key it worked…

---

<div class="post-metadata">

**Author:** ![tajoel2005](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tajoel2005](https://community.postman.com/u/tajoel2005)\
**Post date:** [May 5, 2022, 2:56pm UTC](https://community.postman.com/t/inheriting-auth-function-not-working/21502/5 "2022-05-05T14:56:59Z")

</div>

Hello Everyone, look like i am having the same issue with inherit auth from parent. The collection is created with the variables added to it. When trying to run a request in the collection using the “inherit auth from the parent” i am still getting the error message "  
“code”: 20003,  
“message”: “Authentication Error - No credentials provided”,  
“status”: 401

I believe my collection is saved but i do not see any button to save it. Maybe because it is a new version v9.17.1

 ![2022-05-05 10_56_30-Postman](https://us1.discourse-cdn.com/getpostman/original/2X/2/2c2e50e62e7ce272319b0a0dcfac2222308b2969.png)

---

<div class="post-metadata">

**Author:** ![davidmichaelkarr](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/davidmichaelkarr/32/1395_2.png) [@davidmichaelkarr](https://community.postman.com/u/davidmichaelkarr)\
**Post date:** [January 11, 2023, 8:58pm UTC](https://community.postman.com/t/inheriting-auth-function-not-working/21502/6 "2023-01-11T20:58:16Z")

</div>

I am seeing the same problem as described here, but I have made sure that both the collection and the request are saved. In the request, it says “This request is using Basic Auth from collection ”. The request gets a 401 when configured that way. When I set it to not inherit, it works fine. I directly copied the credentials from the parent into the request and verified separately that I had the correct credentials. I am using “Postman for Windows Version 10.7.1”.
