---
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.

---

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