<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNGroup",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNGroup"
  },
  "title" : "CNGroup"
}
-->

# CNGroup

An immutable object that represents a group of contacts.

```
class CNGroup
```

## Overview

Contacts may be members of one or more groups, depending upon their accounts.

`CNGroup` objects are thread-safe, and you may access their properties from any thread of your app.

## Topics

### Getting the Group Information

[`name`](/documentation/Contacts/CNGroup/name)

The name of the group.

[`identifier`](/documentation/Contacts/CNGroup/identifier)

The unique identifier for a group on the device.

### Generating Search Predicates for Groups

The predicates to match groups. You can only use these predicates with [`CNGroup`](/documentation/Contacts/CNGroup)

An immutable object that represents a group of contacts..

[`+  predicateForGroupsWithIdentifiers:`](/documentation/Contacts/CNGroup/predicateForGroups(withIdentifiers:))

Returns a predicate to find groups with the specified identifiers.

[`+  predicateForGroupsInContainerWithIdentifier:`](/documentation/Contacts/CNGroup/predicateForGroupsInContainer(withIdentifier:))

Returns a predicate to find groups in the specified container.

[`+  predicateForSubgroupsInGroupWithIdentifier:`](/documentation/Contacts/CNGroup/predicateForSubgroupsInGroup(withIdentifier:))

Returns a predicate to find subgroups in the specified parent group.

### Getting Group-Related Keys

[`CNGroupIdentifierKey`](/documentation/Contacts/CNGroupIdentifierKey)

The identifier of the group.

[`CNGroupNameKey`](/documentation/Contacts/CNGroupNameKey)

The name of the group.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`NSMutableCopying`](/documentation/Foundation/NSMutableCopying)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Inherited By

[`CNMutableGroup`](/documentation/Contacts/CNMutableGroup)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)