<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABGetSharedAddressBook()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABGetSharedAddressBook"
  },
  "title" : "ABGetSharedAddressBook()"
}
-->

# ABGetSharedAddressBook()

Returns the unique shared ABAddressBook object.

```
func ABGetSharedAddressBook() -> Unmanaged<ABAddressBookRef>!
```

## Return Value

The address book for the logged-in user. You are responsible for retaining and releasing this object as needed.

## Discussion

Every application shares the address book for the logged-in user and this function returns it. If you call this function more than once or try to create a new address book, you get a pointer to the same shared address book.

---

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)