I have 285 requests in my Postman Collection, in some of them, I use ‘Inherit auth from parent’ type of Authorization.
The tests are failed when the request contains ‘Inherit auth from parent’ type of Authorization and while running Collection Runner. The tests are passed when I run the requests manually. Why does it happen?
The Collection starts from the Authorization request.
The requests which are failed have the following response: Response Body
Action: “ProfileLookup”
Error: “SystemNotAuthorized”
Description: “You must be signed in to use this functionality”
Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.
Inherit auth from parent allows a request to inherit it’s authentication method and credentials from either the folder its in, or the Collection itself. Details can be found here:
Based on the error message you provided, it sounds like at least one of your request requires authentication. If needed, you can either specify this authentication directly in the request (the tab in your last screenshot).
Thanks for your answer, just would like to clarify which type of authentication I should use.
For now, my Collection starts with /Login/ request, auth method (Authorization Tab) - ‘No auth’, after I use the following script to save Bearer Token authorization:
pm.environment.set(“token”, response.Token); to Variables of environment.
After that, I create a new request where I use auth method (Authorization Tab) - ‘Inherit auth form parent’. Maybe to solve this issue the best potion is to use auth method (Authorization Tab) - ‘Bearer Token’?
Actually I use ‘Bearer Token’ {{token}} on the Collection level. So I have no idea how to fix it(
When you run this Collection in the Runner, are you selecting the correct environment? This may be why it succeeds when sending the requests individually, but fails in the Runner:
Yes, sure, I choose the particular environment before running the Collection. Take a look at this screenshot, please. I had a different result for requests which use the same auth method. And some requests use the variables, including token from a particular environment and a server returned 200 OK but some didn’t have the same result (400).
Status 400 generally implies a bad request, meaning there may be something wrong with the way the request is structured. Are these the requests getting the unauthorized message? Status 401 is generally used for “unauthorized”.
Hi There, is this problem resolved? I am facing the same issue. I have a collection, multiple folders in the collection and multiple APIs in each of the folders. I have set authorisation type to oAuth2.0 at the collection level and I wanted that to cascade down to folders and APIs within the folders.
The “Inherit auth from parent” at the folder and the API level is not working. I am on the latest version which is Postman v8.6.1 version.
For me, it all comes down to this: the token variable did not save in the collection level, therefore it did not affect the api request inherit from it ! Thx!