---
title: "Updates information about a user for the specified username and organization shortname (accessible to self, same-organization Admins, or Secretariat)"
method: PUT
path: "/org/{shortname}/user/{username}"
tags: ["Users"]
---

# Updates information about a user for the specified username and organization shortname (accessible to self, same-organization Admins, or Secretariat)

`PUT /org/{shortname}/user/{username}`

<h2>Access Control</h2>  <p>Authenticated users can update their own name fields. Organization admins can update users in their organization. Secretariat users can update users in any organization.</p>  <h2>Expected Behavior</h2>  <p><b>Regular User:</b> Updates the user's own information. Only name fields may be changed.</p>  <p><b>Admin User:</b> Updates information about a user in the Admin's organization. Allowed to change all fields except org_short_name. </p>  <p><b>Secretariat:</b> Updates information about a user in any organization. Allowed to change all fields.</p>

## Path parameters

- `shortname` string, required
- `username` string, required

## Query parameters

- `active` boolean
- `active_roles.add` 'ADMIN'
- `active_roles.remove` 'ADMIN'
- `name.first` string
- `name.last` string
- `name.middle` string
- `name.suffix` string
- `new_username` string
- `org_short_name` string

## Headers

- `CVE-API-ORG` string, required
- `CVE-API-USER` string, required
- `CVE-API-KEY` string, required

## Response `200`

Returns the updated user information

- UpdateUserResponseJson — unresolved $ref

## Other responses

- `400` — Bad Request
- `401` — Not Authenticated
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2025-12-05** `7225ce9cee29` — 1 warning
  - deleted the `query` request parameter `registry`
- **2025-11-04** `26ede34bbf48` — 1 info
  - added the new optional `query` request parameter `registry`
- **2025-10-14** `2c44a137d9b0` — 1 warning
  - deleted the `query` request parameter `registry`
- **2025-09-22** `63c3d9620e8a` — 1 info
  - removed `#/components/schemas/update-user-response.json, #/components/schemas/update-registry-user-response.json` from the response body `oneOf` list for the response status `200`
- **2025-09-19** `efebaec5edf0` — 1 info
  - added the new optional `query` request parameter `registry`

[Full history](https://skmtc.dev/cveproject/apis/cve-services-api/changes/org/:shortname/user/:username/put.md)

---

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