---
title: CBIdentity
framework: Collaboration
role: symbol
role_heading: Class
platforms: [macOS 10.5+]
path: collaboration/cbidentity
---

# CBIdentity

A CBIdentity object is used for accessing the attributes of an identity stored in an identity authority. You can use an identity object for finding identities, and storing them in an access control list (ACL). If you need to edit these attributes, take advantage of the CSIdentity class in Core Services.

## Declaration

```swift
class CBIdentity
```

## Overview

Overview You can obtain a CBIdentity object from one of the following class factory methods: init(name:authority:), init(uuidString:authority:), init(persistentReference:), or identityWithCSIdentity:. A CBIdentity object has methods to support for interoperability with the Core Services Identity API. Send CSIdentity to your CBIdentity object to return an opaque object for use in the Core Services Identity API. Similarly, call identityWithCSIdentity: to use an Core Services Identity opaque object in the Collaboration framework. There are two subclasses of CBIdentity: CBGroupIdentity and CBUserIdentity. If you are working specifically with a group identity, use CBGroupIdentity. Similarly, if you are working with a user identity, use CBUserIdentity.

## Topics

### Finding Identities

- [init(name:authority:)](collaboration/cbidentity/init(name:authority:).md)
- [init(persistentReference:)](collaboration/cbidentity/init(persistentreference:).md)
- [init(uuidString:authority:)](collaboration/cbidentity/init(uuidstring:authority:)-13vns.md)

### Getting Identity Attributes

- [aliases](collaboration/cbidentity/aliases.md)
- [authority](collaboration/cbidentity/authority.md)
- [emailAddress](collaboration/cbidentity/emailaddress.md)
- [fullName](collaboration/cbidentity/fullname.md)
- [image](collaboration/cbidentity/image.md)
- [isHidden](collaboration/cbidentity/ishidden.md)
- [isMember(ofGroup:)](collaboration/cbidentity/ismember(ofgroup:).md)
- [posixName](collaboration/cbidentity/posixname.md)
- [uuidString](collaboration/cbidentity/uuidstring.md)

### Storing Identities

- [persistentReference](collaboration/cbidentity/persistentreference.md)

### Initializers

- [init(UUIDString:authority:)](collaboration/cbidentity/init(uuidstring:authority:)-7xuzv.md)
- [init(coder:)](collaboration/cbidentity/init(coder:).md)
- [init(uniqueIdentifier:authority:)](collaboration/cbidentity/init(uniqueidentifier:authority:).md)

### Instance Properties

- [uniqueIdentifier](collaboration/cbidentity/uniqueidentifier.md)

## Relationships

### Inherits From

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

### Inherited By

- [CBGroupIdentity](collaboration/cbgroupidentity.md)
- [CBUserIdentity](collaboration/cbuseridentity.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)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
