> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Password

Add a password to an existing password list by ID.

## Basic Parameters

<div className="integrations-table">
  | Parameter                | Description                                                                                                                                                                                                                                            |
  | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Active Directory NetBIOS | An Active Directory NetBIOS value to associate the new password with, as it is stored on the Active Directory Domains screen in Passwordstate.<br /><br />**Note**: This parameter is required when the record relates to an Active Directory account. |
  | Host Name                | A host name to associate the new password with, as it stored on the `Hosts` screen in Passwordstate.<br /><br />**Note**: This parameter is required when the record relates to an account on a host.                                                  |
  | OTP URI                  | A valid URI for an OTP (One Time Password) field.                                                                                                                                                                                                      |
  | Password                 | The new password to add.                                                                                                                                                                                                                               |
  | Password Creation Method | Choose whether to set a custom password or generate one automatically.                                                                                                                                                                                 |
  | Password List ID         | The ID of the password list to add the password to.                                                                                                                                                                                                    |
  | Title                    | The title of the new password.                                                                                                                                                                                                                         |
  | User Name                | The username associated with the password to add.                                                                                                                                                                                                      |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Add To Expiry Date               | Provides the default value for adding a number of days or months to the `ExpiryDate` field for all new password records added to the password list.                                                                                                                                                                                                                                                                                                                                   |
  | Add To Expiry Date Interval      | Specify whether to add an expiry time interval in days or months.                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | Enable Heartbeat Status Update   | Select to perform regular account heartbeat status update.                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | Enable Password Reset Schedule   | Select to enable scheduled password resetting.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
  | Generate Gen Field Password      | Select to generate a random password to any generic fields of type `Password`.<br /><br />**Note**: If the password list or generic field is set to use the user's password generator options, the default password generator options will be used instead.                                                                                                                                                                                                                           |
  | Password Reset Enabled           | Select to enable the option to reset password.<br /><br />*Note:* In order for this parameter to work, the parent password list must also have this option selected.                                                                                                                                                                                                                                                                                                                  |
  | Password Reset Schedule          | Set the schedule for automatic password changes in the format of `HH:MM`.<br /><br />For example: `23:10` or `04:00`.                                                                                                                                                                                                                                                                                                                                                                 |
  | Privileged Account ID            | A privilege account to associate its credentials with the password record. Required to <br />initiate a connection and perform a password reset in some password reset scripts.<br /><br />Requirements for Privileged Accounts are documented in the User Manual, under the KB Article section.<br /><br />**Note**: In order to look up `Privileged Account ID` values , head to the `Administration` -> `Passwordstate Administration` -> `Privileged Account Credentials` screen. |
  | Schedule Heartbeat Status Update | Set the schedule for the account heartbeat status update in the format of `HH:MM`.<br /><br />For example: `23:10` or `04:00`.                                                                                                                                                                                                                                                                                                                                                        |
  | Script ID                        | The ID of a password reset script in order to perform password resets.<br /><br />*Note:* In order to look up all `Script ID` values, use the 'Toggle ID Column Visibility' button on the Password Reset Scripts screens in `Passwordstate`.                                                                                                                                                                                                                                          |
  | Validatewith Priv Account        | This field is only used for `Linux` accounts, and when selected, the privileged account credential will be used for authentication when performing account heartbeats - useful for accounts like root which generally are not allowed to be used for SSH.                                                                                                                                                                                                                             |
  | Validation Script ID             | A password validation script to associate with the new password record.<br /><br />**Note**: In order to look up `Validation Script ID` values, use the `Toggle ID Column Visibility` button on the Password Validation Scripts screens in Passwordstate.                                                                                                                                                                                                                             |
</div>

## Example Output

```json theme={"dark"}
[
	{
		"PasswordID": 47401,
		"Title": "North American Core Router 1",
		"UserName": "narouter1",
		"Description": "",
		"GenericField1": "",
		"GenericField2": "",
		"GenericField3": "",
		"GenericField4": "",
		"GenericField5": "",
		"GenericField6": "",
		"GenericField7": "",
		"GenericField8": "",
		"GenericField9": "",
		"GenericField10": "",
		"GenericFieldInfo": [],
		"AccountTypeID": 0,
		"Notes": "",
		"URL": "",
		"Password": "StenS-Lun#3$2^yc",
		"ExpiryDate": "",
		"AllowExport": true,
		"AccountType": "",
		"OTP": "",
		"WebUserID": "",
		"WebPasswordID": "",
		"WebOTPID": "",
		"WebGenericField1ID": "",
		"WebGenericField2ID": "",
		"WebGenericField3ID": "",
		"WebGenericField4ID": "",
		"WebGenericField5ID": "",
		"WebGenericField6ID": "",
		"WebGenericField7ID": "",
		"WebGenericField8ID": "",
		"WebGenericField9ID": "",
		"WebGenericField10ID": ""
	}
]
```

## Workflow Library Example

[Add Password with Passwordstate and Send Results Via Email](https://library.blinkops.com/workflows/add-password-with-passwordstate-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/add-password-with-passwordstate-and-send-results-via-email/canvas" />
</div>
