# Set Group folder in a Business Unit

> Sets the folder structure of a group inside a business unit.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/group-functions/set-group-folder-in-a-business-unit/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Sets the folder structure of the group inside a business unit

## Syntax

SetGroupFolderBU(ByVal **groupName** As String, ByVal **groupType** As String, ByVal **folderStructure** As String, **businessunitName** as string) As Boolean

## Parameters

groupName(String)

- Name of the group

*groupType (String)*

The type of group to retrieve.

- "Dynamic\_ADSI"
- "Department"
- "Dynamic\_SQL"
- "Static"

*FolderStructure (String)*  
        A string representation of the folder structure, example: newFolder\newFolder2  
        If one or more of the folders doesn't exist, they are created.  
        If this is an empty string, the package is removed from its current folder, and moved to the root.

*businessunitName*

The name of the business unit.

## Return value

Boolean. The function returns True if successful, otherwise false.

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK")
oCMS.SetInstanceManagementPoint("1")
Wscript.echo oCMS.SetGroupFolder("Default", "Static", "Upgrade\Default\test", "BusinessUint66")
```
