---
title: "init(name:authority:)"
framework: Collaboration
role: symbol
role_heading: Initializer
platforms: [macOS 10.5+]
path: "collaboration/cbidentity/init(name:authority:)"
---

# init(name:authority:)

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

## Declaration

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

## Parameters

- `name`: The name of the identity.
- `authority`: The identity authority to search.

## Return Value

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

## Discussion

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

## See Also

### Finding Identities

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