# Know which device uploaded/modified/deleted a file

**URL:** https://forum.syncthing.net/t/know-which-device-uploaded-modified-deleted-a-file/22371
**Category:** General
**Created:** [July 2, 2024, 7:02am UTC](https://forum.syncthing.net/t/know-which-device-uploaded-modified-deleted-a-file/22371 "2024-07-02T07:02:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rserentill](https://forum.syncthing.net/user_avatar/forum.syncthing.net/rserentill/32/16884_2.png) [@rserentill](https://forum.syncthing.net/u/rserentill)
#### Post date: [July 2, 2024, 7:02am UTC](https://forum.syncthing.net/t/know-which-device-uploaded-modified-deleted-a-file/22371/1 "2024-07-02T07:02:56Z")

</div>

Hello,

I have a folder shared with multiple devices (each device belongs to a different user). I need to know who created/modified/deleted a file or a folder, I’m wondering if there is any way to do that with Syncthing?

Thanks!

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [July 2, 2024, 10:18pm UTC](https://forum.syncthing.net/t/know-which-device-uploaded-modified-deleted-a-file/22371/2 "2024-07-02T22:18:08Z")

</div>

There is a -verbose -audit command line switches which cover what you are after.

---

<div class="post-metadata">

### Author: ![rserentill](https://forum.syncthing.net/user_avatar/forum.syncthing.net/rserentill/32/16884_2.png) [@rserentill](https://forum.syncthing.net/u/rserentill)
#### Post date: [July 3, 2024, 6:14am UTC](https://forum.syncthing.net/t/know-which-device-uploaded-modified-deleted-a-file/22371/3 "2024-07-03T06:14:30Z")

</div>

Thank you @AudriusButkevicius, that’s helpful! I need to fetch this info from a node app (in real time) running on the same server where the shared folder is. For instance, when a new file/folder is created, the node app (which is watching the directory for changes) saves this new file/folder into a db along with other info. I would like to also store which user last updated/modified a file or folder. Is there any way I can do that without having to parse log files?

---

<div class="post-metadata">

### Author: ![rserentill](https://forum.syncthing.net/user_avatar/forum.syncthing.net/rserentill/32/16884_2.png) [@rserentill](https://forum.syncthing.net/u/rserentill)
#### Post date: [July 3, 2024, 8:13am UTC](https://forum.syncthing.net/t/know-which-device-uploaded-modified-deleted-a-file/22371/4 "2024-07-03T08:13:33Z")

</div>

I see we have [this endpoint](https://docs.syncthing.net/rest/db-file-get.html) on the REST API, which has the `"modifiedBy": "523ITIE"` field, and I probably can make a GET request for every file change detected from the node app. Would you say that’s the way to go? Although I don’t see a similar endpoint for folders, is there any that I’ve maybe missed?

---

<div class="post-metadata">

### Author: ![rserentill](https://forum.syncthing.net/user_avatar/forum.syncthing.net/rserentill/32/16884_2.png) [@rserentill](https://forum.syncthing.net/u/rserentill)
#### Post date: [July 3, 2024, 10:00am UTC](https://forum.syncthing.net/t/know-which-device-uploaded-modified-deleted-a-file/22371/5 "2024-07-03T10:00:24Z")

</div>

Ok… I don’t know how I’ve missed that but I’ve just found out there’s an [event api](https://docs.syncthing.net/dev/events.html) which we can subscribe to using long polling, and that covers my use case with the [RemoteChangeDetected event](https://docs.syncthing.net/events/remotechangedetected.html)! Thanks for the help and apologies for the noise!
