SPUtility.ChangeAccountPassword method
SharePoint 2013
Changes an account password for the specified SharePoint site.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)] public static void ChangeAccountPassword( SPWeb web, string loginName, string oldPassword, string newPassword )
Parameters
- web
- Type: Microsoft.SharePoint.SPWeb
An Microsoft.SharePoint.SPWeb object that represents the site.
- loginName
- Type: System.String
A string that contains the user name of the user.
- oldPassword
- Type: System.String
A string that contains the old password.
- newPassword
- Type: System.String
A string that contains the new password.