Skip to content

CMS_GetGroupMembership

The function returns which groups the current Unit is a member of

For Business Unit support, see Business Unit support

CMS_GetGroupMembership() As Boolean

Boolean, TRUE if function completed successfully. The names of the groups are stored in gaValue as an array. If the unit isn’t a member of any groups, gaValue is an empty array.

If bStatus Then bStatus = CMS_GetGroupMembership()
For index = LBound(gaValue) to UBound(gaValue)
xStatus = Job_WriteLog("Custom", "Index #" & index & ": '" & cStr(gaValue(index)) & "'", bStatus, True)
Next

Scripting Guidelines

Constants Package Property Variables Business Unit support