User-PasswordProfile.ReadWrite.All
Allows the app to read and write password profiles and reset passwords for all users, without a signed-in user.
Permission Details
Read and write all password profiles and reset user passwords
Allows the app to read and write password profiles and reset passwords for all users, without a signed-in user.
cc117bb9-00cf-4eb8-b580-ea2a878fe8f7
Read and write password profiles and reset user passwords
Allows the app to read and write password profiles and reset passwords for all users, on behalf of the signed-in user.
56760768-b641-451f-8906-e1b8ab31bca7
Properties
Properties metadata is not available for this permission mapping. View on Microsoft Learn
JSON Representation
JSON representation is not available for this permission mapping. View on Microsoft Learn
Relationships
Relationships metadata is not available for this permission mapping.
View resource documentationGraph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
POST
/me/changePassword
|
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
POST
/me/changePassword
|
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Me.ChangePassword;
var requestBody = new ChangePasswordPostRequestBody
{
CurrentPassword = "xWwvJ]6NMw+bWH-d",
NewPassword = "0eM85N54wFxWwvJ]",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Me.ChangePassword.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const changePassword = {
currentPassword: 'xWwvJ]6NMw+bWH-d',
newPassword: '0eM85N54wFxWwvJ]'
};
await client.api('/me/changePassword')
.post(changePassword);
Import-Module Microsoft.Graph.Users.Actions
$params = @{
currentPassword = "xWwvJ]6NMw+bWH-d"
newPassword = "0eM85N54wFxWwvJ]"
}
# A UPN can also be used as -UserId.
Update-MgUserPassword -UserId $userId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.users.item.change_password.change_password_post_request_body import ChangePasswordPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ChangePasswordPostRequestBody(
current_password = "xWwvJ]6NMw+bWH-d",
new_password = "0eM85N54wFxWwvJ]",
)
await graph_client.me.change_password.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for User-PasswordProfile.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.