list all account IDs

hi,
I’m writing some scripts to automate the mail-app configuration. I use mailcow with generic oidc auth. Nextcloud is the identity provider. I create the mailboxes and app_passwords for imap/smtp access through the mailcow api. With this app_password I create a mail-app configuration for the nextcloud users with some occ commands.
Now to my problem: I cannot find a way to list all configured mail-app configurations. I need it because I don’t want to loop through all users and do a occ mail:account:export to check if the user already has a configuration.
Is there a way to list all account-id together with the user-id and/or the mailaddress?
If not, I’d create a feature request for a commd: occ mail:account:list

@piepre welcome to the nextcloud community :waving_hand:

try occ user:list -i

Hi scubamuc, thanks, but occ user:list -i doesn’t give me the account-id for the mail-app

As far as I know, this is not possible, or at least there is no documented occ command for this. Or rather, I wasn’t able to find one. If you don’t receive any more answers here, I’d consider opening an issue/feature request on GitHub if one doesn’t already exist: GitHub · Where software is built