Skip to content

Set Primary User

Sets the primary user on a unit

Public Function SetPrimaryUser(ByVal uuid As String, userIdentifier As String) As Boolean

uuid(String)

The uuid of the unit (or device)

userIdentifier

the user that you want to set as primary on the unit

Formats accepted as identifier:

FormatExample
SIDS-1-5-21-2955346805-1668228357-4012311724-500
UPDtbs@capasystems.com
NameTestUser

The function returns true if successful.

VBScript

Set oCMS = CreateObject(``"CapaInstaller.SDK"``) wscript.echo oCMS.SetPrimaryUser(``"B16BAC7B-2975-431C-A380-B702B1A83AF4"``,``"tbs@capasystems.com``"``)