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

# ODNodeCopyRecord(_:_:_:_:_:)

Returns a reference to a record of a node.

```
func ODNodeCopyRecord(_ node: ODNodeRef!, _ recordType: String!, _ recordName: CFString!, _ attributes: CFTypeRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<ODRecordRef>!
```

## Parameters

`node`

The node.

`recordType`

The type of the record.

`recordName`

The name of the record.

`attributes`

An array of directory attributes to be copied in addition to the record. Can be `NULL`.

`error`

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

## Return Value

A reference to a specified record of `inNode`.

## See Also

[Record Types](/documentation/OpenDirectory/record-types)

Types of Open Directory records.

[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)