Switch between user and group accounts?

Your question

Group vs (delegated) User accounts: Is it possible to switch between those two modes without export-importing emails?

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

The type field on a principal (Individual vs. Group) is a fixed designator in Stalwart’s data model – the docs describe it as always being set to either "individual" or "group" and do not describe an in-place conversion between the two. There is no documented mechanism to simply flip a principal’s type from Individual to Group (or vice versa) while retaining its stored mail.

In practice the options documented are:

  • Group accounts hold mail that members access as a shared folder. Members are added to the members list of the group principal.
  • Individual accounts can have access delegated to other users through roles/permissions.

Since a type-change path is not documented, the safest approach would be to create the new principal (of the target type) and then migrate the mail. The backup/snapshot CLI tooling may help reduce the manual effort of that migration.

This isn’t covered in the current docs beyond what is described above. A community member or staff member will follow up.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.