# Assign Profile to Business Unit

> Assigns an existing profile to a Business Unit.

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

## Description

This function is used to create assign an existing Profile to a Business Unit.

## Syntax

**VBScript**

```vb
Public Function AssignProfileToBusinessUnit
(profileID As Integer, businessUnitName As String, changelogComment As String) As Boolean
```

## Parameters

## Return value

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

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)
Wscript.echo oCMS.SetInstanceManagementPoint("2")

Wscript.echo oCMS.AssignProfileToBusinessUnit(28, "Skanderborg", "Added profile to BU from SDK")
```
