Enable encryption for only selected users?

Is it possible to enable file encrytion for some users but have it disabled for other users? Or, if that is not possible, is there a way to decrypt selected files via the command line?

The problem I’m trying to solve is that most files on the nextcloud server are sensitive, and should be encrypted. But, the files for one user are not sensitive, and some of these files need to be copied to be input into a command line script. How can I solve this problem?

The only solution that comes to mind so far is to have two separate Nextcloud installations - one of them with encryption enabled, and one of them without encryption. Hopefully there is a way to do what I want with a single Nextcloud instance.



Running Nextcloud 15.0.7 on Ubuntu 18.04