# Get unit linked user

> Gets a computer's linked users.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/unit-functions/get-unit-linked-user/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Gets a computer's linked Users.

## Syntax

GetUnitLinkedUser(Byval ComputerName as String) as ArrayList

## Parameters

***ComputerName (String)***

The name of the computer

## Return value

The function returns an array of users. Each user (u) in the array is a joined line with the character defined with [Set splitter](/capainstaller/sdk-capainstaller-software-development-kit-functions/container-functions/set-splitter/).

- u.Name
- u.Created
- u.LastExecuted
- u.Status
- u.Description
- u.GUID
- u.ID
- u.Type.Name

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
Set aUnit = CreateObject("System.Collections.ArrayList") 
wscript.echo oCMS.SetInstanceManagementPoint("1")         
Set aUnit=  oCMS.GetUnitLinkedUser("Klient") 
for each item in aUnit 
  wscript.echo item 
next
```
