CNContactStore.GroupsInContainer
--------------------------------

Queries all groups in a given container.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Contacts](component_Contacts.md) | [8.4](newinversion84.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "CNContactStore.GroupsInContainer"; ContainerIdentifier ) 

**MBS**( **"CNContactStore.GroupsInContainer";** /\* Queries all groups in a given container. \*/  
**$ContainerIdentifier**) /\* The identifier for the container.e.g. "9892A5CC-964E-497A-B877-A47619F7493C:ABAccount" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ContainerIdentifier | The identifier for the container. | "9892A5CC-964E-497A-B877-A47619F7493C:ABAccount" |

### Result

Returns list or error.

### Description

Queries all groups in a given container.  
This function allows you to query groups in a certain account.  
Returns list of group identifiers.  
### See also

- [CNContactStore.ContactsInContainer](CNContactStoreContactsInContainer.md)
- [CNContactStore.GroupsForContact](CNContactStoreGroupsForContact.md)

This function checks for a license.

Created 1st August 2018 , last changed 27th January 2020

  
[CNContactStore.GroupsForContact](CNContactStoreGroupsForContact.md) - [CNContactStore.NewContact](CNContactStoreNewContact.md)

[HTML Version](CNContactStoreGroupsInContainer.shtml)