# Error POST /settings/v3/users/ TypeError: UserProvisionRequest.\_\_init\_\_() got an unexpected keyword

**URL:** <https://community.hubspot.com/t/error-post-settings-v3-users-typeerror-userprovisionrequest-init-got-an-unexpected-keyword/104968>\
**Category:** APIs & Integrations\
**Tags:** python\
**Created:** [April 16, 2024, 10:19pm UTC](https://community.hubspot.com/t/error-post-settings-v3-users-typeerror-userprovisionrequest-init-got-an-unexpected-keyword/104968 "2024-04-16T22:19:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raninir](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@raninir](https://community.hubspot.com/u/raninir)\
**Post date:** [April 16, 2024, 10:19pm UTC](https://community.hubspot.com/t/error-post-settings-v3-users-typeerror-userprovisionrequest-init-got-an-unexpected-keyword/104968/1 "2024-04-16T22:19:13Z")

</div>

Hello,

I’m trying to use the example code from POST /settings/v3/users/ locally but I get the error  
“TypeError: UserProvisionRequest.\_\_init\_\_() got an unexpected keyword argument ‘first\_name’”.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fsettings-user-provisioning-v3%2Fguide)**

On the other hand, when testing it within the same page it works correctly  
Testing, locally it only allows me to create a user with just the parameter  
“email”

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [April 16, 2024, 11:44pm UTC](https://community.hubspot.com/t/error-post-settings-v3-users-typeerror-userprovisionrequest-init-got-an-unexpected-keyword/104968/2 "2024-04-16T23:44:10Z")

</div>

Hi @raninir

For some stange reason the User Provisioning API uses `firstName` rather than `firstname` everywhere else in the APIs.

Can you try using `firstName` instead of `first_name`?

Did that work?

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of [Webalite](https://www.webalite.com?utm_campaign=community-forum&utm_source=community&utm_content=signature) a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of **Portal-iQ** the world’s first automated [HubSpot Portal Audit](https://portal-iq.com?utm_campaign=community-forum&utm_source=community-forum&utm_content=signature) that helps you work smarter with HubSpot.

---

<div class="post-metadata">

**Author:** ![raninir](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@raninir](https://community.hubspot.com/u/raninir)\
**Post date:** [April 17, 2024, 1:37pm UTC](https://community.hubspot.com/t/error-post-settings-v3-users-typeerror-userprovisionrequest-init-got-an-unexpected-keyword/104968/3 "2024-04-17T13:37:30Z")

</div>

Hello [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) , researching within the Hubspot libraries for python, the parameters for first\_name or firstName and lastName and last\_name are not there, for that reason it gave the mentioned error, by removing those parameters I can create the user only with the other parameters
