• Stars
    star
    279
  • Rank 147,967 (Top 3 %)
  • Language
    PHP
  • Created over 7 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Admin-configured folders shared by everyone in a group. https://github.com/nextcloud-releases/groupfolders

Group Folders

๐Ÿ“๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Admin configured folders accessible by everyone in a group in Nextcloud.

References

Configuring Group Folders

Group Folders can be configured through Group Folders under Administration settings.

After a folder is created, the admin can give access to the folder to one or more groups, a quota can be assigned for the folder and advanced permissions can be activated and configured.

edit

Permissions to the content of a group folder can be configured on a per-group basis.

permissions

The configuration options include the Write, Share and Delete permissions for each group.

Using Group Folders

Once configured, the folders will show up in the home folder for each user in the configured groups.

folders

Setting Advanced Permissions

Advanced Permissions allows entitled users to configure permissions inside groupfolders on a per file and folder basis.

Permissions are configured by setting one or more of "Read", "Write", "Create", "Delete" or "Share" permissions to "allow" or "deny". Any permission not explicitly set will inherit the permissions from the parent folder. If multiple configured advanced permissions for a single file or folder apply for a single user (such as when a user belongs to multiple groups), the "allow" permission will overwrite any "deny" permission. Denied permissions configured for the group folder itself cannot be overwritten to "allow" permissions by the advanced permission rules.

advanced permissions

Users or whole groups can be entitled to set advanced permissions for each group folder separately on the group folders admin page. For entitlements, only users from those groups are selectable which have to be configured selected in the Groups column.

advanced permission entitlement

Command-line interface management and configuration (via occ)

Group folders can be configured and managed from the command-line interface (CLI). This is accomplished by using the occ command.

The occ command is utilized throughout Nextcloud for many operations and is not specific to Group Folders. When the Group Folders app is enabled, the occ command gains additional functionality specific to Group Folders.

If you're unfamiliar with occ see Using the occ command in the Nextcloud Server Administration Guide for general guidance.

Commands Available

  • occ groupfolders:create <name> โ†’ create a group folder
  • occ groupfolders:delete <folder_id> [-f|--force] โ†’ delete a group folder and all its contents
  • occ groupfolders:expire โ†’ trigger file version and trashbin expiration (see Nextcloud docs for versioning and Nextcloud docs for the trash bin for details)
  • occ groupfolders:group <folder_id> <group_id> [-d|--delete] [write|share|delete] โ†’ assign groups and their rights to a group folder
  • occ groupfolders:list โ†’ list configured group folders
  • occ groupfolders:permissions โ†’ configure advanced permissions (see below for details)
  • occ groupfolders:quota <folder_id> [<quota>|unlimited] โ†’ set a quota for a group folder
  • occ groupfolders:rename <folder_id> <name> โ†’ rename a group folder
  • occ groupfolders:scan <folder_id> โ†’ trigger a filescan for a group folder
  • occ groupfolders:trashbin:cleanup โ†’ empty the trashbin of all group folders

Configuring Advanced Permissions via occ

Advanced permissions can also be configured through the occ groupfolders:permissions command, but must be enabled first.

Enabling

Before configuring any advanced permissions you'll first have to enable advanced permissions for the folder using occ groupfolders:permissions <folder_id> --enable. To do this you'll first need to find the folder_id of the groupfolder you're trying to configure. You can use occ groupfolders:list to find the folder_id of the target folder.

Using

Then you can list all configured permissions trough occ groupfolders:permissions <folder_id>.

occ groupfolders:permissions 1
+------------+--------------+-------------+
| Path       | User/Group   | Permissions |
+------------+--------------+-------------+
| folder     | group: admin | +write      |
| folder/sub | user: admin  | +share      |
|            | user: test   | -share      |
+------------+--------------+-------------+

Permissions for files and folders can be set trough occ groupfolders:permissions <folder_id> --group <group_id> <path> -- <permissions> to set permissions for a group or occ groupfolders:permissions <folder_id> --user <user_id> <path> -- <permissions> to set permissions for a single user.

<permissions> can be one or more of the following options: -read, +read, -write, +write, -create, +create, -delete, +delete, -share or +share to set the set the respective permission to "deny" or "allow". You can delete a rule by passing clear as the <permissions> field. Note: An advanced permission settings set always needs to be complete (for example +read -create +delete) and not just incremental (for example -create). Not mentioned options (in the above example that's write and share) are interpreted as inherited.

To help with configuring nested permission rules, you can check the effective permissions a user has for a path using occ groupfolders:permissions <folder_id> --user <user_id> <path> --test.

To manage the users or groups entitled to set advanced permissions, use occ groupfolders:permissions <folder_id> [[-m|--manage-add] | [-r|--manage-remove]] [[-u|--user <user_id>] | [-g|--group <group_id>]].

Disabling

To disable the advanced permissions feature for a group folder, use occ groupfolders:permissions <folder_id> --disable.

APIs

REST API

Group folders can be configured externally through REST APIs.

The following REST API's are supported:

  • GET apps/groupfolders/folders: Returns a list of all configured folders and their settings
  • POST apps/groupfolders/folders: Create a new group folder
    • mountpoint: The name for the new folder
  • GET apps/groupfolders/folders/$folderId: Return a specific configured folder and its settings
  • DELETE apps/groupfolders/folders/$folderId: Delete a group folder
  • POST apps/groupfolders/folders/$folderId/groups: Give a group access to a folder
    • group: The id of the group to be given access to the folder
  • DELETE apps/groupfolders/folders/$folderId/groups/$groupId: Remove access from a group to a folder
  • POST apps/groupfolders/folders/$folderId/acl: Enable/Disable folder advanced permissions
    • acl 1 for enable, 0 for disable.
  • POST apps/groupfolders/folders/$folderId/manageACL: Grants/Removes a group or user the ability to manage a groupfolders' advanced permissions
    • $mappingId: the id of the group/user to be granted/removed access to/from the folder
    • $mappingType: 'group' or 'user'
    • $manageAcl: true to grants ability to manage a groupfolders' advanced permissions, false to remove
  • POST apps/groupfolders/folders/$folderId/groups/$groupId: Set the permissions a group has in a folder
  • POST apps/groupfolders/folders/$folderId/quota: Set the quota for a folder
    • quota: The new quota for the folder in bytes, user -3 for unlimited
  • POST apps/groupfolders/folders/$folderId/mountpoint: Change the name of a folder
    • mountpoint: The new name for the folder

For all POST calls the required parameters are listed.

Non-admins can access the GET requests to retrieve info about group folders they have access to. Admins can add applicable=1 as a parameter to the group folder list request to get the same filtered results of only folders they have direct access to.

WebDAV API

Group folders are also exposed through a separate WebDAV API at /remote.php/dav/groupfolders/<user id>.

In addition to browsing the contents of the group folders, you can also request the mount point for the group folder by requesting the {http://nextcloud.org/ns}mount-point property.

Footnotes

  1. The releases are now managed in a dedicated release repository. The releases in this repository may be outdated. โ†ฉ

More Repositories

1

server

โ˜๏ธ Nextcloud server, a safe home for all your data
PHP
26,522
star
2

docker

โ›ด Docker image of Nextcloud
Shell
5,826
star
3

all-in-one

๐Ÿ“ฆ The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.
PHP
5,228
star
4

android

๐Ÿ“ฑ Nextcloud Android app
Java
4,144
star
5

desktop

๐Ÿ’ป Desktop sync client for Nextcloud
C++
2,966
star
6

nextcloudpi

๐Ÿ“ฆ Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
Shell
2,508
star
7

ios

๐Ÿ“ฑ Nextcloud iOS App
Swift
1,936
star
8

spreed

๐Ÿ—จ๏ธ Nextcloud Talk โ€“ chat, video & audio calls for Nextcloud
JavaScript
1,441
star
9

vm

๐Ÿ’ปโ˜๐Ÿ“ฆ The Nextcloud VM (virtual machine appliance), Home/SME Server and scripts for RPi (4). Community developed and maintained.
Shell
1,306
star
10

deck

๐Ÿ—‚ Kanban-style project & personal management tool for Nextcloud, similar to Trello
JavaScript
1,203
star
11

bookmarks

๐Ÿ”– Bookmark app for Nextcloud
JavaScript
1,006
star
12

notes-android

โœŽ Android client for Nextcloud Notes app.
Java
937
star
13

calendar

๐Ÿ“† Calendar app for Nextcloud
JavaScript
887
star
14

news

๐Ÿ“ฐ RSS/Atom feed reader
JavaScript
852
star
15

mail

๐Ÿ’Œ Mail app for Nextcloud
JavaScript
830
star
16

passman

๐Ÿ” Open source password manager with Nextcloud integration
JavaScript
786
star
17

news-android

๐Ÿ“ฑ๐Ÿ—ž๏ธ Android client for the Nextcloud news/feed reader app
Java
682
star
18

notes

โœŽ Distraction-free notes and writing
JavaScript
604
star
19

photos

๐Ÿ“ธ Your memories under your control
JavaScript
574
star
20

contacts

๐Ÿ“‡ Contacts app for Nextcloud
JavaScript
565
star
21

tasks

โœ… Tasks app for Nextcloud
JavaScript
563
star
22

text

๐Ÿ“‘ Collaborative document editing using Markdown
JavaScript
546
star
23

cookbook

๐Ÿฒ A library for all your recipes
HTML
532
star
24

recognize

๐Ÿ‘ ๐Ÿ‘‚ Smart media tagging for Nextcloud: recognizes faces, objects, landscapes, music genres
PHP
532
star
25

maps

๐ŸŒ๐ŸŒ๐ŸŒŽ The whole world fits inside your cloud!
JavaScript
490
star
26

documentation

๐Ÿ“˜ Nextcloud documentation
HTML
490
star
27

social

๐ŸŽ‰ Social can be used for work, or to connect to the fediverse!
PHP
464
star
28

talk-android

๐Ÿ“ฑ๐Ÿ˜€ Video & audio calls through Nextcloud on Android
Kotlin
461
star
29

previewgenerator

Nextcloud app to do preview generation in the background.
PHP
456
star
30

richdocuments

๐Ÿ“‘ Collabora Online for Nextcloud
PHP
353
star
31

forms

๐Ÿ“ Simple form & survey app for Nextcloud
JavaScript
316
star
32

helm

A community maintained helm chart for deploying Nextcloud on Kubernetes.
Smarty
315
star
33

twofactor_totp

๐Ÿ”‘ Second factor TOTP (RFC 6238) provider for Nextcloud
JavaScript
286
star
34

end_to_end_encryption

๐Ÿ” Server API to support End-to-End Encryption
PHP
275
star
35

appstore

๐Ÿช App Store for Nextcloud
Python
262
star
36

polls

๐Ÿ—ณ๏ธ Polls app for Nextcloud
JavaScript
255
star
37

providers

community-maintained list of Nextcloud providers
234
star
38

nextcloud.com

๐ŸŒ Our website
PHP
208
star
39

notify_push

Update notifications for nextcloud clients
Rust
202
star
40

backup

Backup now. Restore later.
PHP
202
star
41

nextcloud-vue

๐Ÿฑ Vue.js components for Nextcloud app development โœŒ https://npmjs.org/@nextcloud/vue
Vue
198
star
42

client_theming

๐Ÿ’ป Nextcloud themed desktop client - Moved over to https://github.com/nextcloud/desktop
Shell
197
star
43

fulltextsearch

๐Ÿ” Core of the full-text search framework for Nextcloud
PHP
197
star
44

ocsms

๐Ÿ“ฑ Nextcloud/ownCloud PhoneSync server application
JavaScript
189
star
45

tables

๐Ÿฑ Nextcloud tables app
JavaScript
144
star
46

circles

๐Ÿ‘ช Create groups with other users on a Nextcloud instance and share with them
PHP
143
star
47

ansible-collection-nextcloud-admin

The ansible galaxy for your nextcloud administrative needs.
Jinja
138
star
48

registration

User registration app for Nextcloud
JavaScript
136
star
49

documentserver_community

Document server for onlyoffice
PHP
128
star
50

cms_pico

๐Ÿ—ƒ Integrate Pico CMS and let your users manage their own websites
PHP
127
star
51

talk-ios

๐Ÿ“ฑ๐Ÿ˜€ Video & audio calls through Nextcloud on iOS
Objective-C
123
star
52

neon

A framework for building convergent cross-platform Nextcloud clients using Flutter.
Dart
122
star
53

passman-webextension

Webextension for the Passman Nextcloud app. Also offers browser extension & Android app.
JavaScript
115
star
54

activity

โšก Activity app for Nextcloud
JavaScript
115
star
55

twofactor_u2f

๐Ÿ”‘ U2F second factor provider for Nextcloud
JavaScript
112
star
56

talk-desktop

๐Ÿ’ฌ๐Ÿ’ป Nextcloud Talk Desktop Client Preview
JavaScript
110
star
57

gallery

DEPRECATED Gallery app was replaced by Photos
JavaScript
110
star
58

twofactor_gateway

๐Ÿ”‘ Second factor provider using an external messaging gateway (SMS, Telegram, Signal)
PHP
109
star
59

external

๐ŸŒ Embed external sites in your Nextcloud
JavaScript
104
star
60

notifications

๐Ÿ”” Notifications app for Nextcloud
PHP
102
star
61

user_external

๐Ÿ‘ฅ External user authentication methods like IMAP, SMB and FTP
PHP
101
star
62

news-updater

๐Ÿ“ฐ Fast, parallel feed updater for the News app; written in Python
Python
100
star
63

integration_google

๐Ÿ‡ฌ Google integration into Nextcloud
JavaScript
98
star
64

nextcloud-filelink

โœ‰๏ธ ๐Ÿ“ค "Nextcloud for Filelink" is a Thunderbird extension which makes it easy to send large attachments with Thunderbird by uploading them first to a Nextcloud server and by then inserting the link into the body of your email.
JavaScript
96
star
65

serverinfo

๐Ÿ“Š A monitoring app which creates a server info dashboard for admins
JavaScript
94
star
66

user_saml

๐Ÿ”’ App for authenticating Nextcloud users using SAML https://apps.nextcloud.com/apps/user_saml
PHP
93
star
67

collectives

Collectives is a Nextcloud App for activist and community projects to organize together.
JavaScript
93
star
68

health

Nextcloud health app
JavaScript
92
star
69

passman-android

๐Ÿ”‘ Android app for Passman.
C++
92
star
70

files_videoplayer

๐Ÿ“ผ Old video viewer for Nextcloud
JavaScript
91
star
71

android-library

โ˜Ž๏ธ Nextcloud Android library
Java
85
star
72

files_pdfviewer

๐Ÿ“– A PDF viewer for Nextcloud
JavaScript
85
star
73

suspicious_login

Detect and warn about suspicious IPs logging into Nextcloud
PHP
84
star
74

viewer

๐Ÿ–ผ Simple file viewer with slideshow for media
JavaScript
83
star
75

unsplash

๐Ÿ“ธ๐Ÿ”€โ˜๏ธ Random Nextcloud log in background from Unsplash
JavaScript
82
star
76

fulltextsearch_elasticsearch

๐Ÿ” Use Elasticsearch to index the content of your Nextcloud
PHP
77
star
77

user_oidc

OIDC connect user backend for Nextcloud
PHP
76
star
78

files_antivirus

๐Ÿ‘พ Antivirus app for Nextcloud Files
JavaScript
74
star
79

files_texteditor

๐Ÿ“„ Text editor for plaintext files
JavaScript
71
star
80

Android-SingleSignOn

Single sign-on for Nextcloud (Android Library Project)
Java
70
star
81

user_sql

๐Ÿ”’ App for authenticating Nextcloud users using SQL
PHP
66
star
82

workflow_script

Rule based processing of files through specified external scripts
PHP
65
star
83

files_rightclick

๐Ÿ‘‰ Right click menu for Nextcloud
JavaScript
64
star
84

ransomware_protection

An app that prevents uploading files that have names that are linked to known ransomware
PHP
62
star
85

windows-universal

๐Ÿ“ฑ Nextcloud Windows Mobile app
C#
59
star
86

security-advisories

๐Ÿ‘ฎ Security advisories of Nextcloud
PHP
59
star
87

dashboard

ARCHIVED, new Dashboard is in the server
PHP
58
star
88

integration_openproject

Integration of OpenProject project manager in Nextcloud
PHP
56
star
89

integration_whiteboard

โœ A whiteboard for Nextcloud, using Spacedeck
PHP
53
star
90

encryption-recovery-tools

This project contains tools to recover files that have been encrypted with the Nextcloud End-to-End Encryption or Nextcloud Server-Side Encryption.
PHP
53
star
91

files_automatedtagging

๐Ÿ”– An app for Nextcloud that assigns tags to newly uploaded files based on some conditions
JavaScript
53
star
92

logreader

๐Ÿ“œ Log reader for Nextcloud
JavaScript
52
star
93

calendar_resource_management

Resources back-end for the Nextcloud CalDAV server
PHP
52
star
94

impersonate

๐Ÿ‘ป Allow administrators to become a different user
JavaScript
52
star
95

cdav-library

๐Ÿ“… ๐Ÿ“‡ CalDAV and CardDAV client library for JavaScript
JavaScript
51
star
96

3rdparty

๐Ÿ”‹ 3rd party libraries that are needed to run Nextcloud
PHP
51
star
97

files_fulltextsearch

๐Ÿ” Index the content of your files
PHP
50
star
98

files_accesscontrol

๐Ÿšซ App to manage access control for files
PHP
49
star
99

bruteforcesettings

๐Ÿ•ต Allow admins to configure the brute force settings
JavaScript
49
star
100

twofactor_webauthn

WebAuthn Two-Factor Provider for Nextcloud
PHP
49
star