Default configuration of the "Photos" app

Nextcloud version 30.0.1
Operating system and version Dedian 12 (bookworm)
Apache or nginx version Apache/2.4.62
PHP version 8.2.24

I use Nextcloud more as a platform for viewing images that I make available to others.
The images are stored on a NAS.
The external storage is integrated via cifs and is therefore available in Nextcloud as a local path.
There is a group that can then access these shares.
That all works.
Now the problem:

If a user opens the “photos” app and clicks “all media”, the content is empty. The background will be because the media folder “Photos” is specified by default in the Photos settings.
The images can be seen when this setting is changed from “Photos” to Choose <user>/ All folders.

Now the question is whether there is a way to adjust this value by default. Unfortunately, I haven’t really found anything about this.

Since this is about people who don’t really work with the PC but just want to look at the images, it would be good if not everyone had to make the setting first so that the images can be seen.

It’s a per-user config value. So there isn’t a configurable global default per se. But you can change the setting also via occ for each user. Since you can also get a list of users from the command-line, it should be easy to create a “change all the user photos settings” script that does what you want.

occ user:setting USERNAME photos

And the docs for the user:setting command.

Thank you i found it.
That’s my solution.

occ user:setting <user> photos photosSourceFolders ['"/"']
1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.