Content
Updated by Marc Alcobé about 2 years ago
* Research the group folder feature of Nextcloud, its usage and limitations
On installation or migration the following logic should be applied
* Check if the installation is "blank" so that we can safely create the missing user, group and group folder.
* Also check if the installation was already complete as it could be that user, group and group folder already correctly exist from an earlier installation. If there is everything in place and correctly setup then reuse the existing ones. The combination of group folder, group user and user is so unique that I believe that it is safe to assume that these objects are there from an earlier installation.
* If any of the objects exists, but the setup appears incomplete, don't proceed in creating them. Instead show an error message explaining that there cannot be a user, group and group folder with the name "OpenProject". The user should either fix the setup manually if she wants to reuse them or rename them.
* In case the it is "blank" then
* Create the group "OpenProject"
* Create the user "OpenProject" and make it group admin of "OpenProject" so that it can manage its group memberships.
* Create the group folder "OpenProject" and bind it to group "OpenProject". Make the user "OpenProject" have "advanced permissions" to manage access control lists for files and folders.
* Generate an app password for the "OpenProject" user and show it to the Nextcloud admin.
* An extra step of both Nextcloud and OpenProject setup will be added in order to copy the app system user password from OpenProject to Nextcloud. (see visuals)
* The usr should be able to reset this password once all the process is completed. (see visual)
## Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/51938/content"><img src="/api/v3/attachments/51842/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/51831/content">
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/51937/content"> src="/api/v3/attachments/51832/content">
On installation or migration the following logic should be applied
* Check if the installation is "blank" so that we can safely create the missing user, group and group folder.
* Also check if the installation was already complete as it could be that user, group and group folder already correctly exist from an earlier installation. If there is everything in place and correctly setup then reuse the existing ones. The combination of group folder, group user and user is so unique that I believe that it is safe to assume that these objects are there from an earlier installation.
* If any of the objects exists, but the setup appears incomplete, don't proceed in creating them. Instead show an error message explaining that there cannot be a user, group and group folder with the name "OpenProject". The user should either fix the setup manually if she wants to reuse them or rename them.
* In case the it is "blank" then
* Create the group "OpenProject"
* Create the user "OpenProject" and make it group admin of "OpenProject" so that it can manage its group memberships.
* Create the group folder "OpenProject" and bind it to group "OpenProject". Make the user "OpenProject" have "advanced permissions" to manage access control lists for files and folders.
* Generate an app password for the "OpenProject" user and show it to the Nextcloud admin.
* An extra step of both Nextcloud and OpenProject setup will be added in order to copy the app system user password from OpenProject to Nextcloud. (see visuals)
* The usr should be able to reset this password once all the process is completed. (see visual)
## Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/51938/content"><img
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/51937/content">