Skip to content

About

Manage local and LDAP groups and their members from one screen

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

Group Manager for Nextcloud

Browse every group, local or LDAP, and manage membership and group-folder access from one screen: no more one-user-at-a-time from the Users page.

Group Manager gives administrators a single admin-settings screen to browse all groups on the instance (local and LDAP/AD), inspect and bulk-edit local group membership, and, when the Team Folders app is installed, create or assign group folders and their per-group permissions and quota, without leaving Settings.

Members

Problem Solved

Nextcloud's own Users page manages group membership from the user's side: open a person, tick the groups they belong to, one person at a time. There is no screen for the opposite, much more common admin task: "open this group, see everyone in it, add or remove several people at once, and see which shared folders it can reach", short of occ group:adduser/removeuser one call per person, or juggling the Team Folders admin page separately. Group Manager is that screen.

Features

  • Browse all groups: local and LDAP/AD side by side, searchable, with an All / Local / LDAP filter. LDAP groups sit under their own Synced heading. Two groups whose display name only differs by case (a common LDAP artifact) show their real ID so they stay distinguishable.
  • Bulk membership editing: one field adds a person, an entire group (all of its members not already in this one, as a single queued action), or a pasted multi-line list of usernames/emails, resolved and reviewed before it's queued. Click the field to browse addable people alphabetically, or type to filter; tick several in one search without reopening it. Nothing is applied until you hit Apply: a colored chip queue shows exactly what's about to change, and a limited-concurrency batch applies it without aborting the whole batch over one bad row (a deleted account, say); that one row surfaces its error and Try again retries only what failed.
  • Group-folder creation & assignment (needs the Team Folders app): a second tab lists the group folders this group can reach, with per-group Write / Share / Delete switches (read is always implied), the folder's quota (editable: it belongs to the folder and is shared by every group with access, and the UI says so), and a badge when a folder has advanced permissions (ACL) turned on, since effective access can then be narrower than the switches show. A Create group folder button provisions a brand-new folder and assigns it to the current group in one step; Nextcloud asks you to confirm your password first, since this creates real storage. This works for LDAP groups too: group-folder assignment isn't tied to how the group's members are managed, only membership is.
  • Group quota (needs the Group Quota app): a third tab sets one storage limit shared by every member of the group (their files count against it together), with presets, a custom size, "Unlimited" and a usage bar, staged and applied like any other change. Group Quota applies only one quota per user: a member of several groups that have one follows the first of them in the order Nextcloud lists the user's groups, not the smallest or the largest (on MySQL/MariaDB that is alphabetical by group ID; on SQLite and PostgreSQL it is usually the order the user joined). The tab lists the members for whom another group's quota would take precedence, and names that group, so the conflict is visible before it surprises anyone. Works for LDAP groups too.
  • Group admins: the shield on a member's row makes them an admin of that group (a Nextcloud "subadmin", who can then manage its members from the Users page), queued and applied like any other change. Removing a member also ends their group admin role. Admins who aren't members (Nextcloud allows that, from the core Users page) are listed above the members and can be revoked. The admin group can't get group admins, as in Nextcloud's own provisioning API: one could add themselves to admin.
  • Users: switch the left column to Users to search every account and edit it on the right: account fields, personal quota, language, manager and profile in one tab, group memberships and group admin roles in another, applied together. Enable, disable or delete an account, resend its welcome email, or create a new one. Changes go through Nextcloud's own provisioning API, so its password policy and validation apply; fields an LDAP backend owns are shown read-only.
  • LDAP groups are read-only where they have to be: you can't add or remove an LDAP group's members here (that's the directory's job), and the panel says so with the group's DN. Everything else (browsing, group admins and folder assignment) works the same as for a local group.
  • Optional top bar shortcut: each admin can pin Group Manager to the Nextcloud top bar from the groups list's menu (off by default).
  • Resizable columns: drag the gap between the list and the panel; the width is remembered per browser.
  • Keyboard-friendly: arrow keys and Enter drive the add-field dropdown, Esc closes it, and switching to a different group while changes are still queued asks for confirmation first.

Installation

Group Manager is not yet on the App Store; install it from source:

cd /path/to/nextcloud/apps
git clone https://github.com/kreotropic/group_manager.git
php occ app:enable group_manager

Note: compiled JavaScript is included in the repository, so npm install/npm run build are only needed if you modify the frontend source.

Usage

Open Settings → Administration → Group Manager. Pick a group on the left; its Members and (if Team Folders is installed) Folders tabs appear on the right, each with its own add field and a shared Discard/Apply footer at the bottom of the panel.

To make a member a group admin, hover their row and click the shield; the change joins the same queue as everything else and is applied with Apply.

Creating and deleting groups themselves (as opposed to editing an existing one's membership) is also done from this screen: Create group at the bottom of the list, Delete group in a group's own header.

To manage accounts, switch the list's Groups | Users control to Users and pick someone; Create user is at the bottom of that list, and enabling, disabling and deleting are in the account's ⋯ menu.

Known Limitations

  • The Folders tab only exists when the Team Folders app (groupfolders) is installed and enabled. No tab, no placeholder: the feature simply isn't offered, since there is nothing to assign.
  • LDAP group membership cannot be edited here, by design. LDAP/AD is the source of truth for who belongs to a synced group; this app only lets you browse it. Folder access and group admins for that same group are separate, local concepts and stay editable.
  • Quota is a folder property, not a per-group one. Changing it from a group's Folders tab changes it for every other group that also has access to that folder; the UI says this explicitly next to the field.

Translations

The app interface is available in:

  • English (default)
  • Portuguese (Portugal) / Português (Portugal)
  • German / Deutsch
  • Spanish / Español
  • French / Français

Contributions for additional languages are welcome: add a l10n/<locale>.json and regenerate the matching l10n/<locale>.js with python3 build/l10n.py.

Requirements

  • Nextcloud 31–35
  • PHP 8.1 or later
  • Optional: the Team Folders (groupfolders) app, for the Folders tab
  • Optional: user_ldap, for LDAP/AD group browsing

License

AGPL-3.0-or-later © Ricardo Ferreira.

Development

The frontend is Vue 3 + @nextcloud/vue; the backend wraps IGroupManager/IGroup/IUserManager and, for the Folders tab, the Team Folders app's own FolderManager (resolved lazily, so this app has no hard dependency on it: the tab just doesn't render if it isn't installed). See the code under lib/ and src/.

Frontend build

Compiled JavaScript is committed to the repository, so a build is only needed when you change the Vue/JS sources under src/:

npm install
npm run build      # production build
npm run watch      # rebuild on change

Translations build

After editing a translation, regenerate the frontend l10n/*.js bundles from the l10n/*.json sources (and check for missing/orphaned strings):

python3 build/l10n.py           # regenerate all l10n/<lang>.js
python3 build/l10n.py --check   # CI: fail if strings are missing

Contributing

Pull requests welcome! Please open an issue first to discuss significant changes.

Screenshots

Members (queued changes, group admins) Group folders (permissions, quota, ACL badge)
Members Folders
Group quota (usage, presets, overlap warning) Creating a group folder from a path
Quota Folder path

LDAP group (read-only members, DN shown, group admin)

The Members tab with three changes queued (one person joining, one leaving, one becoming a group admin) and two existing group admins; the Folders tab with three folders at different permission levels, one with advanced permissions (ACL); the Quota tab with a 50 GB limit, its usage and the members whose quota comes from another group; the create dialog with a nested path, its preview in Files and the existing folders; and an LDAP group's read-only member list with its directory DN and a group admin.

Roadmap

Planned work (dropping a deleted group's quota, native group quota enforcement, an accessibility contrast pass, and more) is documented in ROADMAP.md.

Changelog

See CHANGELOG.md for the full version history.

Support

Author

Ricardo Ferreira

About

Manage local and LDAP groups and their members from one screen

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages