# TextControl.UserNames Property

> Gets or sets a list 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:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl.Web`
- **Assembly:** `TXTextControl.Web.dll`, which the TX Text Control .NET Server setup installs, for .NET Framework; in no NuGet package
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextControl.UserNames Property
- **452 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/usernames-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/usernames-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/usernames-property/llms-full.txt

---

### Description

Gets or sets a list 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

```csharp
public string[] UserNames { get; set; }
```

```vbnet
Public Property UserNames() As String()
```

### Examples

In the current ASP.NET Core integration, `UserNames` is configured through `TextControlSettings`. The following example sets it while creating the editor configuration.

```csharp
textControlSettings.UserNames = new string[] { "Quarterly report" };
if (textControlSettings.UserNames != null)
{
    Console.WriteLine("User Names is available for Text Control Settings.");
}
```

```vbnet
textControlSettings.UserNames = New String() { "Quarterly report" }
If textControlSettings.UserNames IsNot Nothing Then
    Console.WriteLine("User Names is available for Text Control Settings.")
End If
```

---

## Nearby

- **Previous:** [TextControl.UICulture Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/uiculture-property/llms-full.txt)
- **Next:** [TextControl.WebSocketHandlerPath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/websockethandlerpath-property/llms-full.txt)
