Addressbook.person.parentGroups
-------------------------------

Returns an array of the address book groups that this person 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.person.parentGroups"; PersonID ) 

**MBS**( **"Addressbook.person.parentGroups";** /\* Returns an array of the address book groups that this person belongs to. \*/  
**$PersonID**) /\* The unique ID for the target person. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PersonID | The unique ID for the target person. | $personID |

### Result

Returns list of unique IDs for the parent groups.

### Description

Returns an array of the address book groups that this person belongs to.  
If the person doesn't belong to any groups, this method returns an empty array.  
### See also

- [Addressbook.group.parentGroups](AddressbookgroupparentGroups.md)

This function checks for a license.

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

  
[Addressbook.person.linkedPeople](AddressbookpersonlinkedPeople.md) - [Addressbook.person.vCardRepresentation](AddressbookpersonvCardRepresentation.md)

[HTML Version](AddressbookpersonparentGroups.shtml)