Addressbook.group.subgroups
---------------------------

Returns an array containing a group's subgroups.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Addressbook](component_Addressbook.md) | [3.1](newinversion31.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [Contacts](component_Contacts.md) functions instead.

MBS( "Addressbook.group.subgroups"; GroupID ) 

**MBS**( **"Addressbook.group.subgroups";** /\* Returns an array containing a group's subgroups. \*/  
**$GroupID**) /\* The unique ID for the target group. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| GroupID | The unique ID for the target group. | $groupID |

### Result

Returns list of group IDs.

### Description

Returns an array containing a group's subgroups.  
If this group doesn't contain any groups, this method returns an empty array.  
### See also

- [Addressbook.group.addSubgroup](AddressbookgroupaddSubgroup.md)
- [Addressbook.group.members](Addressbookgroupmembers.md)
- [Addressbook.group.parentGroups](AddressbookgroupparentGroups.md)
- [Addressbook.group.removeSubgroup](AddressbookgroupremoveSubgroup.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Addressbook.group.removeSubgroup](AddressbookgroupremoveSubgroup.md) - [Addressbook.groups](Addressbookgroups.md)

[HTML Version](Addressbookgroupsubgroups.shtml)