---
title: "Modifies a user"
method: PUT
path: "/settings/users/2026-03/{userId}"
tags: ["Users"]
---

# Modifies a user

`PUT /settings/users/2026-03/{userId}`

Modifies a user identified by `userId`. `userId` refers to the user's ID by default, or optionally email as specified by the `IdProperty` query param.

## Path parameters

- `userId` string, required

## Query parameters

- `idProperty` 'EMAIL' | 'USER_ID'

## Request body

- SettingsUsersPublicUserUpdate
  - `firstName` string — The first name of the user.
  - `lastName` string — The last name of the user.
  - `primaryTeamId` string — The user's primary team.
  - `roleId` string — The user's role.
  - `secondaryTeamIds` string[] — The user's additional teams.

## Response `200`

successful operation

- SettingsUsersPublicUser
  - `email` string, required — The user's email.
  - `firstName` string — The user's first name.
  - `id` string, required — The user's unique ID.
  - `lastName` string — The user's last name.
  - `primaryTeamId` string — The user's primary team
  - `roleId` string — The user's role.
  - `roleIds` string[], required — A list of role IDs assigned to the user.
  - `secondaryTeamIds` string[] — The user's additional teams.
  - `sendWelcomeEmail` boolean — Whether a welcome email was sent to the user. This value will only be populated in response to a provisioning request. Subsequent queries will be false.
  - `superAdmin` boolean, required — Whether the user has super admin privileges.

## Other responses

- `default` — An error occurred.

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-04-08** `b0d8bc008db9` — 3 info
  - api operation id `put-/settings/users/2026-03/{userId}_update` removed and replaced with `put-/settings/users/2026-03/{userId}`
  - the security scope `settings.users.write` was added to the endpoint's security scheme `private_apps`
  - the security scope `crm.objects.users.write` was removed from the endpoint's security scheme `private_apps`
- **2026-04-03** `3578967e48df` — 2 info
  - the security scope `settings.users.write` was added to the endpoint's security scheme `private_apps`
  - the security scope `crm.objects.users.write` was removed from the endpoint's security scheme `private_apps`
- **2026-04-01** `e0403341222c` — 2 info
  - the security scope `settings.users.write` was added to the endpoint's security scheme `private_apps`
  - the security scope `crm.objects.users.write` was removed from the endpoint's security scheme `private_apps`
- **2026-03-31** `f33be5a82610` — 2 info
  - the security scope `settings.users.write` was added to the endpoint's security scheme `private_apps`
  - the security scope `crm.objects.users.write` was removed from the endpoint's security scheme `private_apps`
- **2026-03-30** `dc2fdad57f7f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/settings/users/2026-03/:userId/put.md)

---

[API](https://skmtc.dev/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.dev/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/revisions/f9c7181056c5/schema)
