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

# ODRecordCopyDetails(_:_:_:)

Returns the values of a record’s attributes.

```
func ODRecordCopyDetails(_ record: ODRecordRef!, _ attributes: CFArray!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFDictionary>!
```

## Parameters

`record`

The record.

`attributes`

An array of attributes to return values for. Elements are of type `CFStringRef` or `ODAttributeType`. If `NULL`, all currently fetched values are returned.

`error`

An error reference for error details. Can be `NULL`.

## Return Value

The attribute values of the record.

## Discussion

The returned values are of type `CFString` or `CFData`, depending on the type of attribute. If `inAttributes` is not `NULL` and a requested attribute has not been fetched before, it is fetched in order to return its value.

## See Also

[General Attribute Types](/documentation/OpenDirectory/general-attribute-types)

Types of Open Directory attributes.



---

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)