# Javascript: DocumentEditorSettings.userNames Property

> Optional. An array of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 32.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: DocumentEditorSettings.userNames Property
- **213 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documenteditorsettings/usernames-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documenteditorsettings/usernames-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documenteditorsettings/usernames-property/llms-full.txt

---

### Description

Optional. An array of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.

### Syntax

```javascript
<string[]> DocumentEditorSettings.userNames
```

### Examples

The following example demonstrates `DocumentEditorSettings.userNames` in a practical document-editing workflow. Optional. An array of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.

```javascript
function inspectUserNames(documentEditorSettings) {
    const userNames = documentEditorSettings.userNames;
    console.log("user names:", userNames);
}
```

---

## Nearby

- **Previous:** [Javascript: DocumentEditorSettings.uiCulture Property](https://docs.textcontrol.com/ds-server/reference/javascript/documenteditorsettings/uiculture-property/llms-full.txt)
- **Next:** [Javascript: DocumentEditorSettings.webSocketProtocols Property](https://docs.textcontrol.com/ds-server/reference/javascript/documenteditorsettings/websocketprotocols-property/llms-full.txt)
