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

# ODRecordCopyPasswordPolicy

Returns the password policies of a record.

```
extern CFDictionaryRefODRecordCopyPasswordPolicy(CFAllocatorRef allocator, ODRecordRef record, CFErrorRef*error);
```

## Parameters

`allocator`

The memory allocator to use. If `NULL`, the default allocator is used.

`record`

The record.

`error`

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

## Return Value

The password policies for the record, or `NULL` if no policies have been set.

---

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)