Open this page in the API Guide

IAccountService.ChangeLocalUserAccountPassword Method (Guid, String)

Sets a local user account's password.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
OperationResult ChangeLocalUserAccountPassword(
	Guid accountId,
	string newPassword
)

Parameters

accountId
Type: System.Guid
The ID of the account.
newPassword
Type: System.String
The new password.

Return Value

Type: OperationResult
An object describing the result of the operation.
Exceptions
ExceptionCondition
ArgumentExceptionaccountId is Empty.
ArgumentNullExceptionnewPassword is null.
ValidationExceptionThe new password is not valid.
NotFoundExceptionAn account with the specified ID does was not found.
NotSupportedExceptionThe accounts provider does not support modify operations.
NoPrivilegeException The caller does not have system administration privileges. -or- The account is associated with a tenant, and the caller does not have administration privileges for that tenant.
InvalidOperationExceptionThe account associated with accountId is not a local user account.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also