<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "OpenDirectory",
  "identifier" : "/documentation/OpenDirectory/ODRecordGetRecordName(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Open Directory"
    ],
    "preciseIdentifier" : "c:@F@ODRecordGetRecordName"
  },
  "title" : "ODRecordGetRecordName(_:)"
}
-->

# ODRecordGetRecordName(_:)

Returns the official name of a record.

```
func ODRecordGetRecordName(_ record: ODRecordRef!) -> Unmanaged<CFString>!
```

## Parameters

`record`

The record.

## Return Value

The official name of the record.

## Discussion

The official name of the record typically corresponds to the first value of the `kODAttributeTypeRecordName` attribute, but not always.

---

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)