---
title: "Modify User"
method: PATCH
path: "/scim/v2/Users/{memberId}"
tags: ["SCIM 2.0"]
---

# Modify User

`PATCH /scim/v2/Users/{memberId}`

## Request

- Base URL: `https://platform.hootsuite.com`
- URL: `https://platform.hootsuite.com/scim/v2/Users/{memberId}`
- Auth: OAuth 2
  - Authorization code: `https://platform.hootsuite.com/oauth2/auth`
  - Token URL: `https://platform.hootsuite.com/oauth2/token`

Modify one or more attributes of a Hootsuite user. For a complete example request, see the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2).

## Path parameters

- `memberId` string, required

## Headers

- `Authorization` string, required

## Request body

- ScimPatchUser
  - `schemas` string[]: Must contain the URI value of "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  - `Operations` ScimPatchUserOperation[]
    - `op` string: The operation to perform: can be `add`, `replace` or `remove`
    - `path` string: Contains an attribute path describing the target of the operation. OPTIONAL for `add` and `replace`
    - `value` object: New value if add/replace, or name of target for remove

## Response `200`

Success

- ScimUser
  - `schemas` string[]: Required SCIM schemas
  - `id` string
  - `meta` object
    - `resourceType` string
    - `created` string
    - `lastModified` string
  - `userName` string
  - `name` object
    - `givenName` string
    - `familyName` string
  - `emails` object[]
    - `primary` boolean
    - `value` string
    - `type` string
  - `displayName` string
  - `timezone` string: The user's time zone. If not provided it will default to "America/Vancouver". Valid values are defined at http://php.net/manual/en/timezones.php.
  - `preferredLanguage` 'en' | 'ja' | 'fr' | 'it' | 'es' | 'de' | 'pt_BR' | 'pl' | 'id' | 'zh_CN' | 'zh_HK' | 'zh_TW' | 'nl' | 'ko' | 'ar' | 'ru' | 'th' | 'tr': The user's language.
  - `title` string
  - `groups` object[]
  - `active` boolean

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/hootsuite/apis/hootsuite-rest-api.md) - [All operations](https://skmtc.dev/hootsuite/apis/hootsuite-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hootsuite/apis/hootsuite-rest-api/revisions/adac53bd28bb?raw)
