Admin tool : export all groups name with all libraries and members included (not the data)

Hi,

As admin, I have request from seafile users and need to clean up the groups …

Is there a tool or method (shell, python,…) to do a full export (.xls or .ods or .csv) with :

  • all groups name
  • email owner
  • email members
  • librairies name included

Not the data, only the names :wink:

Thx

To export the comprehensive report you described (including groups, owners, members, and their libraries), the most effective method is to use the Seafile System Admin API.

While the Admin Panel offers basic statistics export, it doesn’t currently provide a “one-click” combined report with that specific level of detail. You can use a Python script to automate this process:

  1. List all groups: Use the GET /api/v2.1/admin/groups/ endpoint to retrieve all groups and their owners.
  2. Get members: For each group ID, use GET /api/v2.1/admin/groups/<group_id>/members/ to fetch the email addresses of all members.
  3. Get libraries: Use GET /api/v2.1/admin/groups/<group_id>/libraries/ to list the libraries associated with each group.

The API documents: Introduction

1 Like

Thanx Daniel, :+1:

Have a nice day