---
title: SecPolicySetProperties
framework: security
role: symbol
role_heading: Function
path: security/secpolicysetproperties
---

# SecPolicySetProperties

Sets properties for a policy.

## Declaration

```occ
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 doc://com.apple.security/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

Return Value A result code. See Security Framework Result Codes.
