IAccountServiceChangeLocalUserAccountPassword 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 (24.3.0.1000)
Syntax
OperationResult ChangeLocalUserAccountPassword(
	Guid accountId,
	string newPassword
)

Parameters

accountId
Type: SystemGuid
The ID of the account.
newPassword
Type: SystemString
The new password.

Return Value

Type: OperationResult
An object describing the result of the operation.
Exceptions
ExceptionCondition
ArgumentExceptionaccountId is Empty.
ArgumentNullExceptionnewPassword is .
ValidationExceptionThe new password is not valid.
NotFoundExceptionThe account does not exist.
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