<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.3.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecPolicyGetTypeID()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecPolicyGetTypeID"
  },
  "title" : "SecPolicyGetTypeID()"
}
-->

# SecPolicyGetTypeID()

Returns the unique identifier of the opaque type to which a policy object belongs.

```
func SecPolicyGetTypeID() -> CFTypeID
```

## Return Value

A value that identifies the opaque type of a [`SecPolicy`](/documentation/Security/SecPolicy) object.

## Discussion

This function returns a value that uniquely identifies the opaque type of a [`SecPolicy`](/documentation/Security/SecPolicy) object. You can compare this value to the <doc://com.apple.documentation/documentation/CoreFoundation/CFTypeID> identifier obtained by calling the <doc://com.apple.documentation/documentation/CoreFoundation/CFGetTypeID(_:)> function on a specific object. These values might change from release to release or platform to platform.

---

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)