Set Primary User
Description
Section titled “Description”Sets the primary user on a unit
Syntax
Section titled “Syntax”Public Function SetPrimaryUser(ByVal uuid As String, userIdentifier As String) As Boolean
Parameters
Section titled “Parameters”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:
| Format | Example |
|---|---|
| SID | S-1-5-21-2955346805-1668228357-4012311724-500 |
| UPD | tbs@capasystems.com |
| Name | TestUser |
Return Value
Section titled “Return Value”The function returns true if successful.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject(``"CapaInstaller.SDK"``) wscript.echo oCMS.SetPrimaryUser(``"B16BAC7B-2975-431C-A380-B702B1A83AF4"``,``"tbs@capasystems.com``"``) |