Addressbook.group.members
-------------------------

Returns an array of persons in a group.

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

### Deprecated

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

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

**MBS**( **"Addressbook.group.members";** /\* Returns an array of persons in a group. \*/  
**$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 person IDs.

### Description

Returns an array of persons in a group.  
If this group doesn't contain any people, this method returns an empty array.  
Since version 5.3 you can pass group names for GroupID and plugin lookups ID for you.  
### Examples

Query group members:

 MBS ( "Addressbook.group.members" ; "Family")  
### See also

- [Addressbook.group.addMember](AddressbookgroupaddMember.md)
- [Addressbook.group.removeMember](AddressbookgroupremoveMember.md)
- [Addressbook.group.subgroups](Addressbookgroupsubgroups.md)

This function checks for a license.

Created 18th August 2014 , last changed 21st September 2015

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

[HTML Version](Addressbookgroupmembers.shtml)