<!--
{
  "availability" : [
    "macOS: 10.7.0 - 10.9.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecPolicyCreateWithOID",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecPolicyCreateWithOID"
  },
  "title" : "SecPolicyCreateWithOID"
}
-->

# SecPolicyCreateWithOID

Returns a policy object for the specified policy type object identifier.

```
SecPolicyRefSecPolicyCreateWithOID(CFTypeRef policyOID);
```

## Parameters

`policyOID`

The object identifier (OID) of the policy type for this policy.

## Discussion

---

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)