# Get User Inventory

> Gets software inventory for a specific user.

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

## Description

Gets software inventory for a specific user.

## Syntax

GetUserInventory(Byval UserName as String) as ArrayList

## Parameters

*UserName (String)*

The user name of the user

## Return value

The function returns an array of User Inventory items. Each element (inv) 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/).

- inv.Category
- inv.Entry
- inv.Value
- inv.Datatype
- inv.GUID
- inv.ID

## Example

**VBScript**

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