Set Group folder in a Business Unit
Description
Section titled “Description”Moves a group inside a Business Unit to a folder in the same Business Unit.
Syntax
Section titled “Syntax”SetGroupFolderBU(ByVal groupName As String, ByVal groupType As String, ByVal folderStructure As String, ByVal businessunitName As String) As Boolean
Parameters
Section titled “Parameters”groupName (String)
Name of the group
groupType (String)
The type of the group.
- “Dynamic_ADSI”
- “Department”
- “Dynamic_SQL”
- “Static”
FolderStructure (String)
A string representation of the folder structure, for example newFolder\newFolder2.
- If one or more of the folders doesn’t exist, they are created.
- If this is an empty string, the group is removed from its current folder, and moved to the root.
businessunitName (String)
The name of the Business Unit. If you specify an empty string, the function works like Set Group Folder.
Return value
Section titled “Return value”Boolean. The function returns True if successful, otherwise false. If the Business Unit or the group isn’t found, the function raises an error.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")oCMS.SetInstanceManagementPoint("1")Wscript.echo oCMS.SetGroupFolderBU("Default", "Static", "Upgrade\Default\test", "Denmark")