# TextControlSettings.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:** 26.0
- **Namespace:** `TXTextControl.Web.MVC`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControlSettings.UserNames Property
- **452 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/usernames-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/usernames-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/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:** [TextControlSettings.UICulture Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/uiculture-property/llms-full.txt)
- **Next:** [TextControlSettings.Width Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/width-property/llms-full.txt)
