CNContactStore.GroupHierarchy
-----------------------------

Queries group hierarchy as JSON.

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

MBS( "CNContactStore.GroupHierarchy" ) ### Parameters

none

### Result

Returns JSON or error.

### Description

Queries group hierarchy as JSON.  
This is a convenience method to give you data for all groups with all subgroups and members in one call.  
### Examples

Query group hierarchie:

 MBS ("CNContactStore.GroupHierarchy")  
<small>  
Example result:   
{ "62D07651-4F83-47D0-99F8-A72EAECBD8B7:ABGroup" : { "subgroups" : \[ "A0A7844B-1E8E-4ECF-8B81-273CB06B282D:ABGroup" \], "contacts" : \[ "4A2B7E15-BF77-416F-824E-0360FC4B196B:ABPerson" , "A0C31D4D-E573-432B-A8E4-016919E46A3A:ABPerson" , "1DC6166E-131E-449B-8BBC-DA689316D02A:ABPerson" \], "identifier" : "62D07651-4F83-47D0-99F8-A72EAECBD8B7:ABGroup" , "name" : "Big Group" }, "A0A7844B-1E8E-4ECF-8B81-273CB06B282D:ABGroup" : { "parent" : "62D07651-4F83-47D0-99F8-A72EAECBD8B7:ABGroup" , "subgroups" : \[ \], "contacts" : \[ "4A2B7E15-BF77-416F-824E-0360FC4B196B:ABPerson" , "3495273B-715E-4258-9946-B0FC487211C5:ABPerson" , "773E1A42-ABCD-4CCF-88DE-E9C64BEE6D33:ABPerson" , "05DC9067-7FEE-4146-8CD9-6F88E7053307:ABPerson" \], "identifier" : "A0A7844B-1E8E-4ECF-8B81-273CB06B282D:ABGroup" , "name" : "Test Group" } } </small>### See also

- [CNContactStore.GroupsByName](CNContactStoreGroupsByName.md)

### Release notes

- **Version 8.5**
    - Added [CNContactStore.GroupHierarchy](http://www.mbsplugins.eu/CNContactStoreGroupHierarchy.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 8.5pr1](https://www.mbsplugins.de/archive/2018-10-02/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th September 2018 , last changed 26th September 2018

  
[CNContactStore.GetTransactionAuthor](CNContactStoreGetTransactionAuthor.md) - [CNContactStore.Groups](CNContactStoreGroups.md)

[HTML Version](CNContactStoreGroupHierarchy.shtml)