- Home
- Resources
- Integrations
- Nextcloud
Nextcloud n8n integrationAutomate Nextcloud with n8n.
Your Nextcloud can do more than store what people drop into it. The Nextcloud n8n integration exposes 17 operations over 3 resources, files, folders and users, so a workflow uploads, moves and shares on its own. There is no trigger node, so the start comes from elsewhere.
Verified Trustpilot reviews · AI, automation & growth agency
What does the Nextcloud n8n integration actually do?
The Nextcloud node talks to your instance over WebDAV and the user provisioning API, and turns everyday file handling into workflow steps. It covers three resources: File, Folder and User. A workflow can create the folder of the month, drop a document into it, hand a link to a colleague, then read the folder back to check what landed there.
First scenario, the inbox that empties itself. A mail workflow picks up an invoice attachment, folder.create builds the destination path if it does not exist yet, and file.upload writes the document where accounting expects it. Teams running this on Gmail get a filing cabinet that fills without anyone dragging a file.
Second scenario, the quarterly archive. folder.list reads what a directory holds, a bit of logic sorts the old from the recent, and folder.move pushes last quarter under an archive tree. Write the resulting inventory into Google Sheets, or a Microsoft Excel 365 workbook if that is where the team already tracks things, and you have a paper trail of every move, dated, searchable, without touching the server.
Third scenario, onboarding. user.create invites the new hire, folder.create prepares their working directory, folder.share opens it to their group, and a message posted through Slack tells them where to look. The same chain runs in reverse on the last day, with user.delete at the end.
Nextcloud is often the destination rather than the source. Files arriving from Google Drive land here for long-term storage, which is the whole point of hosting your own instance. What the node passes between steps is a binary field, the slot inside an n8n item that carries the file itself rather than text, and both download and upload name that slot explicitly.
Two limits worth knowing before you build. There is no Nextcloud trigger node, so nothing starts from a Nextcloud event: a Schedule Trigger on a fixed interval, or an n8n Webhook called by another service, does the starting. And the node stops at files, folders and accounts. Talk, Calendar, Deck or anything else in your instance goes through the HTTP Request node, which calls any endpoint of the API while reusing the same credential. If you want a broader read on the platform before committing, the n8n review covers it.
How do you connect Nextcloud to n8n?
- 01
Build your WebDAV URL
Both authentication methods need a WebDAV URL. Take the address you use to reach Nextcloud and add
/remote.php/webdav/to it. An instance athttps://cloud.n8n.comgiveshttps://cloud.n8n.com/remote.php/webdav. If Nextcloud sits in a subdirectory, slot that subdirectory in first, before theremote.phppart. - 02
Pick basic auth for the fast route
Basic auth asks for the WebDAV URL, your User name and a Password. Nextcloud recommends an app password instead of your account password: open your avatar in the top right, go to Personal settings, then Security, scroll to the App Password section and generate one. Copy it into n8n. That credential is stored once and every Nextcloud node in every workflow reuses it from a dropdown.
- 03
Or register an OAuth2 client
In Nextcloud, open Administrator Security Settings, find Add client under OAuth 2.0 clients, name it something like
n8n integration, paste the OAuth Callback URL that n8n shows as the Redirection URI, and select Add. Nextcloud returns a Client Identifier and a Secret, which become the Client ID and Client Secret in n8n.
What can the Nextcloud node do?
The Nextcloud node exposes 17 operations across 3 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.
| Resource | Create | Get | Get Many | Update | Delete | Copy | Download | List | Move | Share | Upload |
|---|---|---|---|---|---|---|---|---|---|---|---|
| File | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
| Folder | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
| User | ✓ | ✓ | ✓ | ✓ | ✓ |
Operations index
File
6 operationsCopy a file
file.copyWhat you see in n8n
Notes & use cases
Duplicates a document and leaves the original untouched, so the copy can be edited, shared or archived on its own.
Key parameters
- From Path: the path of the file to copy, starting with a slash, as in
/invoices/original.txt. Coming from an earlier node, write it as an expression such as{{ $json.path }}, the n8n syntax for reading a field off the incoming item. - To Path: where the duplicate lands, also starting with a slash, for example
/invoices/copy.txt.
Delete a file
file.deleteWhat you see in n8n
Notes & use cases
Erases the target from the instance. Nextcloud's own retention rules decide what happens next, and n8n returns no copy of what was removed.
Key parameters
- Delete Path: the path to remove, starting with a slash, for instance
/invoices/2019/invoice_1.pdf. The same field accepts a whole folder, which is why a typo here is expensive.
Download a file
file.downloadWhat you see in n8n
Notes & use cases
Pulls the file out of Nextcloud and into the workflow, where the next nodes can parse it, attach it to a message or forward it elsewhere.
Key parameters
- File Path: the full path of the file to fetch, starting with a slash, such as
/invoices/2019/invoice_1.pdf. Partial paths fail. - Put Output File in Field: the name of the output binary field that will hold the file. Downstream nodes expect that exact name, so keep it consistent across the workflow.
Move a file
file.moveWhat you see in n8n
Notes & use cases
Changes where a document lives. Nothing is duplicated: the file leaves the old path and only exists at the new one afterwards.
Key parameters
- From Path: the current path of the file, as in
/invoices/old_name.txt. - To Path: the new path. Change the last segment and you have renamed the file instead of relocating it, which is the trick behind most naming conventions.
Share a file
file.shareWhat you see in n8n
Notes & use cases
Opens one document to someone outside the folder, either by link or by naming the recipient.
Key parameters
- File Path: the full path of the file to share.
- Share Type: who receives it, chosen among Public Link, User, Group, Email and Circle.
- User, Group ID, Email or Circle ID: the recipient, matching the type selected above.
- Options: Password protects the share, and Permissions sets what the recipient can do, from Read alone to All.
Upload a file
file.uploadWhat you see in n8n
Notes & use cases
Writes a document into the instance. This is the operation most workflows end on, because Nextcloud is usually where things get stored rather than where they start.
Key parameters
- File Path: the absolute destination path. The parent folder has to exist already, and an existing file at that path gets overwritten.
- Binary File: on for a real file coming from a previous node, off to write text.
- Input Binary Field: the name of the incoming binary field holding the file.
- File Content: the text to write when Binary File stays off.
Folder
6 operationsCopy a folder
folder.copyWhat you see in n8n
Notes & use cases
Reproduces a directory and what it contains at a second location, original included. Useful when a structure has to exist twice rather than move.
Key parameters
- From Path: the folder to copy, starting with a slash.
- To Path: the destination path, which must not collide with an existing directory unless you intend to write into it.
Create a folder
folder.createWhat you see in n8n
Notes & use cases
Adds a directory at the path you give. Run it before any upload that targets a place which may not exist yet.
Key parameters
- Folder: the path to create, starting with a slash, for example
/invoices/2019. Only the last level is created: the parent has to be there already, so a deep tree needs one call per level.
Delete a folder
folder.deleteWhat you see in n8n
Notes & use cases
Removes a directory and everything under it in one call. There is no dry run and no per-file confirmation.
Key parameters
- Delete Path: the path to remove, starting with a slash. Point it at a directory and the whole subtree goes, which is exactly what makes this operation worth guarding with an IF node before it.
List a folder
folder.listWhat you see in n8n
Notes & use cases
Returns the contents of a directory, one item per entry, which the workflow can then filter, count or loop over.
Key parameters
- Folder Path: the directory to read, starting with a slash, such as
/invoices/2019/. Left empty, the node reads the root of the WebDAV URL set in the credential.
Move a folder
folder.moveWhat you see in n8n
Notes & use cases
Relocates a directory with its contents. The tree keeps its shape, only its parent changes.
Key parameters
- From Path: the current folder path.
- To Path: the new path. Moving a large tree in a single call can take a while, which is why some workflows prefer to list the folder and move its files one by one.
Share a folder
folder.shareWhat you see in n8n
Notes & use cases
Grants access to a whole directory, so anything added to it later is visible to the recipient without a second share.
Key parameters
- File Path: the full path of the folder to share.
- Share Type: Public Link, User, Group, Email or Circle.
- User, Group ID, Email or Circle ID: whoever receives the access.
- Options: Permissions decides between Read, Create, Update, Delete or All, and Password locks a public link.
User
5 operationsCreate a user
user.createWhat you see in n8n
Notes & use cases
Invites someone to the Nextcloud organization. The account is created and the invitation goes to the address you provide.
Key parameters
- Username: the identifier the person will log in with, like
john. Every other user operation takes this same value, so decide the naming rule once. - Email: where the invitation lands.
- Additional Fields: Display Name sets the readable name shown across the instance.
Delete a user
user.deleteWhat you see in n8n
Notes & use cases
Closes an account on the instance. Run it at the end of an offboarding chain, after the files that account owned have been moved or copied somewhere shared.
Key parameters
- Username: the identifier of the account to remove, not the display name and not the email address. Read it back with a get operation first if the workflow only knows the person by name.
Get a user
user.getWhat you see in n8n
Notes & use cases
Reads back one account and returns its attributes, which the workflow can then test before doing anything else.
Key parameters
- Username: the identifier to look up. Pass it from a previous node with
{{ $json.userId }}when the value comes out of an earlier step.
Get many users
user.getAllWhat you see in n8n
Notes & use cases
Walks the account directory and returns the list, one item per user.
Key parameters
- Return All: on, n8n follows the API pages until every account is returned; off, it stops at Limit.
- Limit: the ceiling on how many accounts come back.
- Options: Search narrows the list to matching accounts, and Offset skips the first ones, handy for processing a directory in slices.
Update a user
user.updateWhat you see in n8n
Notes & use cases
Edits attributes on an account that already exists, without touching anything you leave alone.
Key parameters
- Username: the account to edit, for instance
john. - Update Fields: the attributes to change, added one at a time from the option list. An empty collection means the node runs and changes nothing, which is easy to miss when a workflow silently reports success.
Need help automating Nextcloud with n8n?
A person reads every message.



