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

# Modifies a user

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

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/settings/users/2026-09/{userId}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://app.hubspot.com/oauth/authorize`
    - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `settings.users.write`
  - OAuth 2
    - Authorization code: `https://app.hubspot.com/oauth/authorize`
    - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `crm.objects.users.write`

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

- PublicUserUpdate
  - `firstName` string: The first name of the user. It is a string value.
  - `lastName` string: The last name of the user. It is a string value.
  - `primaryTeamId` string: The identifier for the user's primary team. It is a string value.
  - `roleId` string: The identifier for the user's role. It is a string value.
  - `seatNames` string[]: An array of seat names associated with the user. Each item in the array is a string.
  - `secondaryTeamIds` string[]: An array of identifiers for the user's secondary teams. Each item in the array is a string.

## Response `200`

successful operation

- PublicUser
  - `email` string, required: The email address of the user. This is a required field and must be unique.
  - `firstName` string: The first name of the user, represented as a string.
  - `id` string, required: The unique identifier for the user, represented as a string.
  - `lastName` string: The last name of the user, represented as a string.
  - `primaryTeamId` string: The ID of the primary team to which the user belongs, represented as a string.
  - `roleId` string: A string representing a single role ID assigned to the user.
  - `roleIds` string[], required: An array of strings representing the IDs of the roles assigned to the user. This is a required field.
  - `seatNames` string[]: An array of strings representing the names of seats assigned to the user.
  - `secondaryTeamIds` string[]: An array of strings representing the IDs of secondary teams to which the user is associated.
  - `sendWelcomeEmail` boolean: A boolean indicating whether a welcome email should be sent to the user.
  - `superAdmin` boolean, required: A boolean indicating whether the user has super admin privileges. This is a required field.

## Other responses

- `default`: An error occurred.

## Changes

- **2026-10-13** (2026-09) `9aa42e094343`: 2 info
  - the security scope `settings.users.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `crm.objects.users.write` was removed from the endpoint's security scheme `oauth2`
- **2026-10-10** (2026-09) `1ec62479c06a`: 2 info
  - the security scope `crm.objects.users.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `settings.users.write` was removed from the endpoint's security scheme `oauth2`
- **2026-09-22** (2026-09) `1ec62479c06a`: 2 info
  - the security scope `crm.objects.users.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `settings.users.write` was removed from the endpoint's security scheme `oauth2`

[Operation history](https://skmtc.dev/hubspot/apis/settings-user-provisioning/changes/settings/users/2026-09/:userId/put.md)

---

[API](https://skmtc.dev/hubspot/apis/settings-user-provisioning.md) - [All operations](https://skmtc.dev/hubspot/apis/settings-user-provisioning/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/settings-user-provisioning/revisions/9aa42e094343?raw)
