Skip to content

Link profile to group

This function is used to link an existing Profile to a group

Public Function AddProfileToGroup
(profileID As Integer, groupName As String, groupType As String, businessUnitName As String, changelogComment As String) As Boolean

Returns a boolean value. True if succeeded, false if not.

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")