Create document user
create-document-userGives a person access to a document as an owner, collaborator or viewer, and by default emails them an invitation.
Use this tool when:
Someone should be able to open, comment on or edit a document, e.g. a colleague who should review a draft or a counterparty's lawyer who should comment during review
A colleague should become an owner of a document
Identify the person by exactly one of email or account_user_uuid. Someone who is to sign the document is added with create-document-signatory instead. An email address that already belongs to a user of the document is refused; change that user with update-document-user.
By default the person is emailed an invitation straight away. Before calling, always ask the user whether the person should receive that email now, rather than relying on the default, and confirm the email address with them rather than inferring it. With invite_method none the person is added without an email, and can be invited later via update-document-user with mode send_invitation. A person without a fynk account user in this account can open the document only once invited. When creating multiple users in succession, make sure to check with the user for each of them whether an email should be sent.
Whenever the document has a party on the person's side, party_identifier is required. Any of the document's parties is accepted, but the person usually belongs to one on their side: a party where is_internal is true for a person with a fynk account user in this account, one where is_internal is false for anyone else, typically the counterparty their company is. Ask the user which party if it is not clear.
A person without a fynk account user in this account (internal_user false) cannot be added while the document is in the draft or approved_draft stage, and cannot be an owner. For a person with a fynk account user in this account, the name and title come from their fynk profile, and first_name, last_name and title are ignored.
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>",
"role": "<role>"
},
"name": "create-document-user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The person's access level on the document. Only people with a fynk account user in this account can be owners | |
| No | Email address of the person to add. Send this or account_user_uuid, not both | ||
| title | No | Job title. Ignored for a person with a fynk account in this account | |
| last_name | No | Last name. Ignored for a person with a fynk account in this account | |
| first_name | No | First name. Ignored for a person with a fynk account in this account | |
| document_uuid | Yes | UUID of the document to give the person access to. If you don't already have the document's UUID, use the list-documents tool to find it. | |
| invite_method | No | "fynk_email" emails the person an invitation to the document. "none" adds them without an email | fynk_email |
| party_identifier | No | The party to add the person to, as the ref_uuid, reference, or entity_name of an existing party in the document. Required when the document has a party on the person's side, one where is_internal is true for a person with a fynk account user in this account and false for anyone else, which is usually the right party for them | |
| account_user_uuid | No | uuid of an account user to add, as returned by list-account-users. Send this or email, not both | |
| 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 invite_method fynk_email. 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 |