# IRPCLoginsAdmin.CreatePasswordResetRequestAdmin

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Server login accounts](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/CreatePasswordResetRequestAdmin/

Badges: `Administration API / specialized` `admin` `session`

Creates a password reset link for an M-Files login, returns it, and optionally e-mails it to
the user.

- **Service:** [Server login accounts](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/index.md) `MFiles.IRPCLoginsAdmin`
- **gRPC method:** `/MFiles.IRPCLoginsAdmin/CreatePasswordResetRequestAdmin`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/create-password-reset-request-admin`
- **Request:** [`CreatePasswordResetRequestAdminRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/CreatePasswordResetRequestAdmin/index.md#request)
- **Response:** [`CreatePasswordResetRequestAdminResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/CreatePasswordResetRequestAdmin/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires the system administrator server role (server right `manage_logins`).
- The same rules as in
  [CreatePasswordResetRequest](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/CreatePasswordResetRequest/index.md) apply.

<a id="request"></a>

## Request: CreatePasswordResetRequestAdminRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `account_name` | `string` | The name of the login account whose password should be reset. |
| `account_email_address` | `string` | The e-mail address of the login account whose password should be reset. |
| `site_url` | `string` | The site URL used in forming the password reset URL. |
| `send_email` | `bool` | True to also e-mail the link to the user. |
| `vault_guid` | `string` | The vault to try login account reset request in. |

<a id="response"></a>

## Response: CreatePasswordResetRequestAdminResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `password_reset_url` | `string` | The reset link. |

<a id="related"></a>

## Related methods

- [CreatePasswordResetRequest](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLoginsAdmin/CreatePasswordResetRequest/index.md): Starts the "forgot password" flow for an M-Files login: sends the user an e-mail with a password reset link.
