---
title: "assign(to:)"
framework: Assignables
role: symbol
role_heading: Instance Method
platforms: [iOS 17.4+, iPadOS 17.4+, Mac Catalyst 17.4+]
path: "assignables/assignabledocument/assign(to:)"
---

# assign(to:)

Assign this document to a user.

## Declaration

```swift
func assign(to userIdentity: AnyUserIdentity) throws -> AssignedWorkDocument
```

## Parameters

- `userIdentity`: The identity of the user to assign this document to.

## Return Value

Return Value A work document for the taker of the assignable document.
