Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

SPUtility.ChangeAccountPassword method

Changes an account password for the specified SharePoint site.

Namespace:  Microsoft.SharePoint.Utilities
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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.