# Feature OP-9769 - Password Resets via API

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-9769

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

Our use case is that we have a small admin team that manages invites to users for projects. Oftentimes, a user does not use the initial email invitation to activate their account (their status is “invited” still) or they have since forgotten their password and need a new one (their status is “active”). We find ourselves manually triggering a large number of password reset emails.

We do this via the random password option in their user record:

<figure class="image op-uc-figure" style="width:7.175in;"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://support.openproject.org/web/image/20162?access_token=d9af47f8-cfb1-476c-ab93-ede72e442acf"></div></figure>

This works for both invited and active users—it is effectively a password reset since it enforces a password change on next login.

We are looking to automate this process if possible, as we’ve done with adding members to projects via the API (we made a user form to enter email addresses and we translate that into the API requests in the back-end).

Is there an API request that would emulate this functionality? Sending a temporary password or a new invite and enforcing a password change the next time they log in with it? Or some other idea for achieving this without having to edit individual user records?

I see in the API reference that there is an option to set a password for a user, but that is not quite what we are aiming for.

Any ideas would be much appreciated!
