# How to pass on username

**URL:** <https://community.postman.com/t/how-to-pass-on-username/16791>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [October 15, 2020, 9:48am UTC](https://community.postman.com/t/how-to-pass-on-username/16791 "2020-10-15T09:48:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goppi](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@goppi](https://community.postman.com/u/goppi)\
**Post date:** [October 15, 2020, 9:48am UTC](https://community.postman.com/t/how-to-pass-on-username/16791/1 "2020-10-15T09:48:22Z")

</div>

Hi, I need to produce the equivalent of this curl command with Postman.  
curl -X POST ‘[https://domain.url/v1/property.list](https://domain.url/v1/property.list)’   
-u API\_KEY:   
-H “Content-Type: application/json”

When I use Basic Auth and enter the API\_KEY into the username, Postman produces however this code:  
curl --location --request POST ‘[https://domain.url/v1/property.list](https://domain.url/v1/property.list)’   
–header ‘Content-Type: application/json’   
–header 'Authorization: Basic ’

I couldn’t find any info on if the curl option -u plain\_text\_username is the equivalent to --header 'Authorization: Basic '. Any thoughts about this or any thoughts about how to make Postman use the -u option?

---

<div class="post-metadata">

**Author:** ![meredith-hassett](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meredith-hassett/32/5918_2.png) [@meredith-hassett](https://community.postman.com/u/meredith-hassett)\
**Post date:** [October 20, 2020, 6:09am UTC](https://community.postman.com/t/how-to-pass-on-username/16791/2 "2020-10-20T06:09:52Z")

</div>

It looks like the Code Generator for cURL code does not include all header options. You can see a list of options it can create [here](https://github.com/postmanlabs/postman-code-generators/blob/develop/codegens/curl/lib/util.js). I would recommend opening up an Issue on the GitHub repo to expand the Code Generator, or if you are technically savvy, contribute to the code base yourself!
