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

# SecPolicySetProperties

Sets properties for a policy.

```
OSStatus SecPolicySetProperties(SecPolicyRef policyRef, CFDictionaryRef properties);
```

## Parameters

`policyRef`

The policy to alter

`properties`

A `CFDictionaryRef` object containing the new set of properties. For a list of valid property keys, see [Security Policy Keys](/documentation/Security/security-policy-keys).
  
  > Note:
  > The property ``doc://com.apple.security/documentation/Security/kSecPolicyOid`` is read-only and thus cannot be changed by this function.

## Return Value

A result code. See [Security Framework Result Codes](/documentation/Security/security-framework-result-codes).

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