# PUT users doesn't work

**URL:** <https://community.hubspot.com/t/put-users-doesnt-work/67749>\
**Category:** APIs & Integrations\
**Created:** [October 24, 2022, 3:47pm UTC](https://community.hubspot.com/t/put-users-doesnt-work/67749 "2022-10-24T15:47:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [October 24, 2022, 3:47pm UTC](https://community.hubspot.com/t/put-users-doesnt-work/67749/1 "2022-10-24T15:47:39Z")

</div>

When I’m trying to update one of my users:

```lia-code-sample
PUT https://api.hubapi.com/settings/v3/users/26828843
{
 "primaryTeamId": 11608416
}

```

I’m getting:

```lia-code-sample
{
 "status": "error",
 "message": "internal error",
 "correlationId": "5478d6f1-b378-4719-bc73-560910ab7d2a"
}

```

Any idea why this is happening?  
Team 11608416 exists on my crm account

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 24, 2022, 8:20pm UTC](https://community.hubspot.com/t/put-users-doesnt-work/67749/2 "2022-10-24T20:20:03Z")

</div>

Hi, @Sachavskyi 👋 Thanks for reaching out. Based on the info you provided, I was able to make a successful update.

Here’s my quick test:

- I verified my Team IDs by going to Settings \> Properties \> Contacts—searched for HubSpot Team

 ![CleanShot 2022-10-24 at 14.13.51.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/3/b3f76864cb914a13123c0a4674e127eb285ebf13.png)

- I used this endpoint to make the update  
`PUT /settings/v3/users/{userId}​`

- My request

- My response

Can you try from the example listed on the Settings API [endpoint page](https://developers.hubspot.com/docs/api/settings/user-provisioning), please? And include your request and response body here?

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [October 25, 2022, 9:27am UTC](https://community.hubspot.com/t/put-users-doesnt-work/67749/3 "2022-10-25T09:27:58Z")

</div>

Here is the request and response body from Settings API [endpoint page:](https://developers.hubspot.com/docs/api/settings/user-provisioning)

```lia-code-sample
curl --request PUT \
 --url https://api.hubapi.com/settings/v3/users/26828843 \
 --header 'authorization: Bearer my_token' \
 --header 'content-type: application/json' \
 --data '{
 "roleId": "449312",
 "primaryTeamId": "11608416"
}'

```

```lia-code-sample
HTTP 500

{
 "status": "error",
 "message": "internal error",
 "correlationId": "b6505c65-32b6-4ab3-9a5a-be38df507c61"
}

```

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 25, 2022, 9:26pm UTC](https://community.hubspot.com/t/put-users-doesnt-work/67749/4 "2022-10-25T21:26:59Z")

</div>

Hey, @Sachavskyi! 500 errors are tricky to pin down because they are often non-specific.

Guess we’ll just play Dr. House and start ruling things out 😊

More questions —

- Is this happening for _ **only** _ one specific User?
- Or is it for any User?
- If it’s just this User, can you change them to another team outside the original team or the problematic one?
- Is this happening in a portal with a paid subscription? — Starter, Professional, etc?

Thank you very much for all the help so far! — Jaycee

---

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [October 26, 2022, 8:18am UTC](https://community.hubspot.com/t/put-users-doesnt-work/67749/5 "2022-10-26T08:18:10Z")

</div>

- This is for any User
- My portalId=2662710

---

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [October 25, 2022, 9:31am UTC](https://community.hubspot.com/t/put-users-doesnt-work/67749/6 "2022-10-25T09:31:06Z")

</div>

And here is my teamId:

 ![Sachavskyi_0-1666690242805.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/5/05fae0c29fbaeaf390fd26368cb94538db5a2567.png)

---

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [October 27, 2022, 9:43am UTC](https://community.hubspot.com/t/put-users-doesnt-work/67749/7 "2022-10-27T09:43:44Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) any news?
