CNContactStore.AddSubgroup
--------------------------

Adds a group to an existing group.

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

MBS( "CNContactStore.AddSubgroup"; GroupIdentifier; GroupIdentifier ) 

**MBS**( **"CNContactStore.AddSubgroup";** /\* Adds a group to an existing group. \*/  
**$GroupIdentifier**; /\* The group identifier.  
Can be identifier or group name.e.g. "F527BF7C-6426-4D48-86CA-CB5E57743FFE:ABGroup" \*/   
**$GroupIdentifier**) /\* The sub group identifier.  
Can be identifier or group name.e.g. "62D07651-4F83-47D0-99F8-A72EAECBD8B7:ABGroup" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| GroupIdentifier | The group identifier.   Can be identifier or group name. | "F527BF7C-6426-4D48-86CA-CB5E57743FFE:ABGroup" |
| GroupIdentifier | The sub group identifier.   Can be identifier or group name. | "62D07651-4F83-47D0-99F8-A72EAECBD8B7:ABGroup" |

### Result

Returns OK or error.

### Description

Adds a group to an existing group.  
### See also

- [CNContactStore.AddGroup](CNContactStoreAddGroup.md)
- [CNContactStore.AddMember](CNContactStoreAddMember.md)
- [CNContactStore.DeleteGroup](CNContactStoreDeleteGroup.md)
- [CNContactStore.RemoveSubgroup](CNContactStoreRemoveSubgroup.md)
- [CNContactStore.RenameGroup](CNContactStoreRenameGroup.md)
- [CNContactStore.Subgroups](CNContactStoreSubgroups.md)

This function checks for a license.

Created 1st August 2018 , last changed 30th August 2018

  
[CNContactStore.AddMember](CNContactStoreAddMember.md) - [CNContactStore.AuthorizationError](CNContactStoreAuthorizationError.md)

[HTML Version](CNContactStoreAddSubgroup.shtml)