Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Queries group hierarchy as JSON.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
none
Returns JSON or error.
Query group hierarchie:
MBS("CNContactStore.GroupHierarchy")
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"
}
}
Created 26th September 2018, last changed 26th September 2018
CNContactStore.DeleteGroup - CNContactStore.Groups
Feedback: Report problem or ask question.