Link profile to group
Description
Section titled “Description”This function is used to link an existing Profile to a group
Syntax
Section titled “Syntax”Public Function AddProfileToGroup(profileID As Integer, groupName As String, groupType As String, businessUnitName As String, changelogComment As String) As BooleanParameters
Section titled “Parameters”Return value
Section titled “Return value”Returns a boolean value. True if succeeded, false if not.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Wscript.echo oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)Wscript.echo oCMS.SetDefaultManagementPoint("2")
Wscript.echo oCMS.AddProfileToGroup(28, "Sales", "Department", "Skanderborg", "Added profile to bu-grp from SDK")Wscript.echo oCMS.AddProfileToGroup(14, "Dev", "Static", "", "Added profile to grp from SDK")