Update document user
update-document-userChanges a document user's access level (role), party or details, or sends them their invitation email.
Use this tool when:
Someone's access to a document should change, e.g. a viewer who should now be able to edit becomes a collaborator
A document user should be moved to a different party on the document
An external document user's name or title is wrong or missing
A document user who was added without an invitation email should now be invited (
modesend_invitation)
Identify the user by document_uuid plus email; the document_users section of get-document-info lists everyone with access, with their invitation_status.
With mode update (the default), send only the arguments that should change. Changing the role never changes whether the user signs: a signatory demoted to viewer remains a signatory, so use the signatory tools to manage signing. Only users with a fynk account in this account (internal_user true) can be owners, and a document always keeps at least one owner. The name and title of an internal user come from their fynk profile and cannot be changed here.
With mode send_invitation, the user is emailed an invitation to the document straight away, optionally with an invitation_message; no other arguments are accepted. Confirm with the user before sending it. Each document user can be sent an invitation via this tool or create-document-user only once: a user who has already been invited (by email, or by fynk when signing started) is refused, and there is no way to resend it here. A user without a fynk account user in this account (internal_user false) cannot be invited while the document is in the draft or approved_draft stage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_uuid": "<document_uuid>",
"email": "<email>"
},
"name": "update-document-user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What the call does. "update" changes the user with the arguments sent. "send_invitation" emails the user an invitation to the document, and accepts only invitation_message | update |
| role | No | The user's new access level on the document. Only users with internal_user true can be owners | |
| Yes | Email address of the document user to update | ||
| title | No | New job title. Cannot be changed if internal_user is true | |
| last_name | No | New last name. Cannot be changed if internal_user is true | |
| first_name | No | New first name. Cannot be changed if internal_user is true | |
| document_uuid | Yes | UUID of the document the user belongs to. If you don't already have the document's UUID, use the list-documents tool to find it. | |
| party_identifier | No | If given, moves the user to this party. Must be a ref_uuid, reference, or entity_name of an existing party in the document | |
| invitation_message | No | An extra note shown in the invitation email, up to 2000 characters and without links. The email presents it as a message from the user (or from the account, if it hides who sent an email), so write it in the user's voice. Only with mode send_invitation. Without it, a person without a fynk user in this account gets the document's external_reviewer_invitation_message (in the document_users section of get-document-info), if one is set: read it before writing your own |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the document user | |
| role | No | The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory | |
| uuid | No | Do not show to the user unless they ask for it | |
| No | Email of the document user | ||
| party_uuid | No | UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it | |
| _entity_type | No | Only relevant for tooling. Do not show to the user | |
| is_signatory | No | true if the user is also a signatory of the document | |
| internal_user | No | true if the user has a fynk user in this account | |
| invitation_status | No | Whether the user has been invited to the document, as prose that can be presented to the user |