---
title: "setPolicy(_:value:)"
framework: opendirectory
role: symbol
role_heading: Instance Method
path: "opendirectory/odnode/setpolicy(_:value:)"
---

# setPolicy(_:value:)

## Declaration

```swift
func setPolicy(_ policy: String!, value: Any!) throws
```
