user: changePassword

Namespace: microsoft.graph

Enable the user to update their password. Any user can update their password without belonging to any administrator role.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Directory.AccessAsUser.All
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

POST /me/changePassword

Request headers

Header Value
Authorization Bearer {token}. Required.
Content-type application/json. Required.

Request body

In the request body, provide a JSON object with the following parameters.

Parameter Type Description
currentPassword String Your current password.
newPassword String Your new password.

Response

If successful, this method returns a 204 No Content response code.

Example

The following example shows a request to update your own password.

Request

POST https://graph.microsoft.com/v1.0/me/changePassword
Content-type: application/json

{
    "currentPassword": "xWwvJ]6NMw+bWH-d",
    "newPassword": "0eM85N54wFxWwvJ]"
}

Response

HTTP/1.1 204 No Content

See also