# Get devices linked to vpp user

> Gets a list of devices linked to a VPP user.

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

## Description

Gets a list of devices linked to a vpp user.

## Syntax

GetDevicesLinkedToVppUser(ByVal vppUserID As Integer) as ArrayList

## Parameters

***vppUserID (Integer)***

The id of the vpp user.

## Return value

The function returns an array of units. Each unit 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/).

- unit.Name
- unit.Created
- unit.LastExecuted
- unit.Status
- unit.Description
- unit.GUID
- unit.ID
- unit.Type.Name
- unit.UUID
- Unit.IsMobileDevice ("True" or "False")
- unit.location

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
Set aUnit = CreateObject("System.Collections.ArrayList") 
WScript.echo oCMS.SetInstanceManagementPoint("1")
Set aVppUsers = oCMS.GetVppUsersAll()
For Each vppUser In aVppUsers
  Set aTemp = Split(vppUser ,"|")
  Set vppUserID = aTemp(0)
  Set aUnit = oCMS.GetUsersLinkedToVppUser(vppUserID) 
  For Each item In aUnit 
    WScript.echo item 
  Next
Next
 
```
