Get users linked to vpp user
Description
Section titled “Description”Gets a list of users linked to a vpp user, including inventory variables like full name and emails.
Syntax
Section titled “Syntax”GetUsersLinkedToVppUser(ByVal vppUserID As Integer) as ArrayList
Parameters
Section titled “Parameters”vppUserID (Integer)
The ID of the VPP user. You can find it with Get vpp users or Get vpp users all. The ID is the first value in each line.
Return value
Section titled “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
Section titled “Example”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 aTemp = Split(vppUser, "|") vppUserID = aTemp(0) Set aUnit = oCMS.GetUsersLinkedToVppUser(vppUserID) For Each item In aUnit WScript.echo item NextNext