Get Users
Description
Gets a list of users, including inventory variables like full name and emails.
Syntax
GetUsers() as ArrayList
Return Value
The function returns an array of users. Each user in the array is a joined line with the character defined with Set splitter.
- user.Name
- user.Created
- user.LastExecuted
- user.Status
- user.Description
- user.GUID
- user.ID
- user.Type.Name
- user.UUID
- user.Location
- user.fullName
- user.EmailPrimary
- user.EmailSecondary
- user.EmailTertiary
Example
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") Set aUnit = CreateObject("System.Collections.ArrayList") wscript.echo oCMS.SetDefaultManagementPoint("1") Set aUnit = oCMS.GetUsers() for each item in aUnit wscript.echo item next