---
title: "Reset all passwords owned/shared by a user"
method: POST
path: "/restapi/json/v1/user/{userId}/resetOwnedAndSharedPasswords"
tags: ["Passwords"]
---

# Reset all passwords owned/shared by a user

`POST /restapi/json/v1/user/{userId}/resetOwnedAndSharedPasswords`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/user/{userId}/resetOwnedAndSharedPasswords`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/user/:userId/resetOwnedAndSharedPasswords/post.ts> (a function with typed inputs; its response is checked against the schema)

Triggers a password reset for all resources owned and shared with the specified user. Notifies specified email IDs upon completion.

## Path parameters

- `userId` integer, required

## Headers

- `orgName` string

## Request body `application/x-www-form-urlencoded`

- ResetPasswordsByUserRequest
  - `operation` object
    - `Details` object
      - `emailIdsToNotify` string[]: List of email addresses that will be notified about the password reset.

## Response `200`

Passwords reset

- ResetPasswordsByUserResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `name` string

---

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