---
title: "addTrustType(_:trustAccount:trustPassword:username:password:joinExisting:)"
framework: opendirectory
role: symbol
role_heading: Instance Method
path: "opendirectory/odconfiguration/addtrusttype(_:trustaccount:trustpassword:username:password:joinexisting:)"
---

# addTrustType(_:trustAccount:trustPassword:username:password:joinExisting:)

## Declaration

```swift
func addTrustType(_ trustType: String!, trustAccount account: String!, trustPassword accountPassword: String!, username: String!, password: String!, joinExisting join: Bool) throws
```
