# CMS_RemoveUserFromDepartmentGroup

> Removes a specified user from a department group.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/cms-functions/cms-removeuserfromdepartmentgroup/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

#### Description

Removes a specified user from a department group

For Business Unit support click [Business Unit support](/capainstaller/vb-scripting-library/addendum/business-unit-support/)

### Syntax

CMS_RemoveUserFromDepartmentGroup(sUnit, sGroup) As Boolean

User packages are not supported in PowerPacks

### Parameters

#### sUnit (String)

Unit name

#### sGroup (String)

Group name

### Example

**VBScript**

```vb
If bStatus Then bStatus = CMS_RemoveUserFromDepartmentGroup(gsUnitname, "CapaInstaller")
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[CMS_AddUserToStaticGroup](/capainstaller/vb-scripting-library/cms-functions/cms-addusertostaticgroup/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/) [Business Unit support](/capainstaller/vb-scripting-library/addendum/business-unit-support/)
