CMS_RemoveUserFromDepartmentGroup
Description
Section titled “Description”Removes a specified user from a department group
For Business Unit support, see Business Unit support
Syntax
Section titled “Syntax”CMS_RemoveUserFromDepartmentGroup(sUnit, sGroup) As Boolean
User packages are not supported in PowerPacks
Parameters
Section titled “Parameters”sUnit (String)
Section titled “sUnit (String)”In a user package, the function applies to the current user, and this parameter isn’t used. In a computer package, specify the name of the user unit.
sGroup (String)
Section titled “sGroup (String)”Group name. To specify more than one group, separate the names with commas.
Return value
Section titled “Return value”Boolean. True if the request was processed by the CapaInstaller server. The function also returns True if the group can’t be found.
Example
Section titled “Example”If bStatus Then bStatus = CMS_RemoveUserFromDepartmentGroup(gsUnitname, "CapaInstaller")Related functions
Section titled “Related functions”CMS_AddUserToStaticGroup Constants Package Property Variables Business Unit support