---
title: CNGroup
framework: contacts
role: symbol
role_heading: Class
path: contacts/cngroup
---

# CNGroup

An immutable object that represents a group of contacts.

## Declaration

```swift
class CNGroup
```

## Overview

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](contacts/cngroup/name.md)
- [identifier](contacts/cngroup/identifier.md)

### Generating Search Predicates for Groups

- [predicateForGroups(withIdentifiers:)](contacts/cngroup/predicateforgroups(withidentifiers:).md)
- [predicateForGroupsInContainer(withIdentifier:)](contacts/cngroup/predicateforgroupsincontainer(withidentifier:).md)
- [predicateForSubgroupsInGroup(withIdentifier:)](contacts/cngroup/predicateforsubgroupsingroup(withidentifier:).md)

### Getting Group-Related Keys

- [CNGroupIdentifierKey](contacts/cngroupidentifierkey.md)
- [CNGroupNameKey](contacts/cngroupnamekey.md)

### Initializers

- [init(coder:)](contacts/cngroup/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [CNMutableGroup](contacts/cnmutablegroup.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSMutableCopying](foundation/nsmutablecopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Groups and Containers

- [CNMutableGroup](contacts/cnmutablegroup.md)
- [CNContainer](contacts/cncontainer.md)
