We've been leveraging the instructions at https://community.zextras.com/mailbox-delegation-in-carbonio-community-edition-carbonio-ce/#aioseo-sending-emails-from-a-delegated-mailbox to delegate mailboxes to other accounts (having other email inboxes available from the webmail interface).
In particular, this command works super well in ENABLING the mailbox under a different user account:
carbonio prov selectMailbox TARGET_MAILBOX modifyFolderGrant / account MAILBOX_GETTING_ACCESS rwixd
But we cannot figure out how to REMOVE the mailbox delegated to another account. Using the `Revoking Permissions` command on those docs doesn't work:
carbonio prov selectMailbox zextras@carbonio.local modifyFolderGrant / cos default none
We understand reducing permissions to the target mailbox should do it, so we tried a few variations of the initial command, like:
carbonio prov selectMailbox TARGET_MAILBOX modifyFolderGrant / account MAILBOX_GETTING_ACCESS none
... but the delegated mailbox still exists when you login to email (after a logout / login, of course).
What are we missing?
Are any services required to be restarted or other commands needed to commit the change?
Correction above, the TARGET_MAILBOX and MAILBOX_GETTING_ACCESS are swapped.
We also tried "" and literally nothing instead of none, but those are invalid commands.