nextcloud / nextcloud/mail

Add option to disable account deletion for all accounts

Open
#10,535 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Related problem to this feature:

I have added every account via occ mail:account:create and want to automate account management via scripts, so every mail account gets its own token. I have disabled the option to create new mailboxes, but every user can still delete the mailbox created via occ (and manage mail server settings). If I fake the account to be provisioned then this option (as well as mail server settings) is disabled, but the user can not create new alias adresses.

Feature:

So it would be nice to have an option for the server admin to disable account deletion, similar to the option which disables the creation of new mailboxes.

Possible workaround

Sadly, I was not able to disable the remove account button with css. This would be also a nice workaround if the button (as well with mail server settings) has a dedicated css class.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing option that disables mailbox creation and trace its handling from the occ mail:account:create workflow through the account-management UI. Check how the remove-account button and mail-server settings are rendered; done means an administrator can disable deletion for all accounts without preventing alias creation, with the behavior covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, php
Domain
backend, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.