# Javascript: TXTextControl.SaveSettings.masterPassword Property

> Specifies a password for the document's access permissions.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.SaveSettings.masterPassword Property
- **173 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-savesettings/masterpassword-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-savesettings/masterpassword-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-savesettings/masterpassword-property/llms-full.txt

---

### Description

Specifies a password for the document's access permissions.

### Syntax

```javascript
<string> TXTextControl.SaveSettings.masterPassword
```

### Examples

The following example demonstrates `TXTextControl.SaveSettings.masterPassword` in a practical document-editing workflow. It specifies a password for the document's access permissions.

```javascript
function inspectMasterPassword(saveSettings) {
    const masterPassword = saveSettings.masterPassword;
    console.log("master password:", masterPassword);
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.SaveSettings.lastModificationDate Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-savesettings/lastmodificationdate-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.SaveSettings.OmittedContent Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-savesettings/omittedcontent-enumeration/llms-full.txt)
