# Javascript: TXTextControl.LoadSettings.masterPassword Property

> Specifies the password when the document is restricted with access permissions.

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

---

### Description

Specifies the password when the document is restricted with access permissions.

### Syntax

```javascript
<number> TXTextControl.LoadSettings.masterPassword
```

### Examples

The following example demonstrates `TXTextControl.LoadSettings.masterPassword` in a practical document-editing workflow. It specifies the password when the document is restricted with access permissions.

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

---

## Nearby

- **Previous:** [Javascript: TXTextControl.LoadSettings.loadSubTextParts Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-loadsettings/loadsubtextparts-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.LoadSettings.PDFImportSettings Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-loadsettings/pdfimportsettings-enumeration/llms-full.txt)
