Addressbook.group.parentGroups
------------------------------

Returns an array containing a group's parents-that is, the groups that a group belongs to.

| 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.parentGroups"; GroupID ) 

**MBS**( **"Addressbook.group.parentGroups";** /\* Returns an array containing a group's parents-that is, the groups that a group belongs to. \*/  
**$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 parent group IDs.

### Description

Returns an array containing a group's parents-that is, the groups that a group belongs to.  
If this group doesn't belong to any groups, this method returns an empty array.  
### See also

- [Addressbook.group.addSubgroup](AddressbookgroupaddSubgroup.md)
- [Addressbook.group.subgroups](Addressbookgroupsubgroups.md)
- [Addressbook.person.parentGroups](AddressbookpersonparentGroups.md)

This function checks for a license.

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

  
[Addressbook.group.members](Addressbookgroupmembers.md) - [Addressbook.group.removeMember](AddressbookgroupremoveMember.md)

[HTML Version](AddressbookgroupparentGroups.shtml)