Hi!
On macOS (Mac M1 hardware) I created a shared folder and let a device use it via SMB with its own user (e.g. "deviceuser").
The software on the device creates the folders and files with that user ("deviceuser") as sole owner and only the owner can read+write.
When the macOS admin user that...