Automatic creation of group folders

Hi,
I wonder if it is possible to create a mechanism to create group folders and give group permissions to this folder for each group retrieved by the ldap configuration.
This would help to automate the creation of group folders, so that whenever a group has access to nextcloud, this group would already have a group folder assigned.

Best,
Francis

Not tested:
GitHub - nextcloud/groupfolders: ๐Ÿ“๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Admin-configured folders shared by everyone in a group.

I guess what you suggest is to have some sort of daemon that checks which groups are found and create group folders with the right permissions for those missing, right?

Yes. I think you can program a shell script (e.g. bash) to list all group folders and ldap groups and create e.g. new group folders. But i never used occ in bash scripts.

1 Like

Thanks, gonna try that, looks like a good plan!