<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Collaboration",
  "identifier" : "/documentation/Collaboration/CBIdentity/init(name:authority:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Collaboration"
    ],
    "preciseIdentifier" : "c:objc(cs)CBIdentity(cm)identityWithName:authority:"
  },
  "title" : "init(name:authority:)"
}
-->

# init(name:authority:)

Returns the identity object with the given name from the specified identity authority.

```
init?(name: String, authority: CBIdentityAuthority)
```

## Parameters

`name`

The name of the identity.

`authority`

The identity authority to search.

## Return Value

The identity object, or `nil` if no identity is found with the specified name.

## Discussion

The name is compared against all valid identity names, including full names, short names, email addresses, and aliases.

---

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)