CNContactStore.GroupsForContact
-------------------------------

Searches all groups for a given contact.

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

MBS( "CNContactStore.GroupsForContact"; ContactIdentifier ) 

**MBS**( **"CNContactStore.GroupsForContact";** /\* Searches all groups for a given contact. \*/  
**$ContactIdentifier**) /\* The contact identifier.e.g. "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" |

### Result

Returns list of group identifiers or error.

### Description

Searches all groups for a given contact.  
### Examples

Search groups for a contact:

 MBS ( "CNContactStore.GroupsForContact"; "185E03A8-D1B8-4C9A-8183-D0B63FF7569C:ABPerson" )  
### See also

- [CNContactStore.ContainerForContact](CNContactStoreContainerForContact.md)
- [CNContactStore.Groups](CNContactStoreGroups.md)
- [CNContactStore.GroupsInContainer](CNContactStoreGroupsInContainer.md)
- [CNContactStore.UnifiedMeContact](CNContactStoreUnifiedMeContact.md)
- [CNContactStore.UpdateContact](CNContactStoreUpdateContact.md)

### Blog Entries

- [MBS FileMaker Plugin, version 8.4pr5](https://www.mbsplugins.de/archive/2018-08-27/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 22nd August 2018 , last changed 27th January 2020

  
[CNContactStore.GroupsByName](CNContactStoreGroupsByName.md) - [CNContactStore.GroupsInContainer](CNContactStoreGroupsInContainer.md)

[HTML Version](CNContactStoreGroupsForContact.shtml)