<description><![CDATA[in /e/OS cloud, nextcloud accounts are linked to mail accounts. This app ensures both are coordinated: it sets the e-mail address, quota and storage of the user upon creation.
It also completes the account deletion by cleaning other parts of the /e/OS cloud setup to ensure no more data is retained when a user requests an account deletion.
This app uses the UserDeletedEvent to invoke scripts in the docker-welcome container of /e/OS cloud setup]]></description>
$createdAt=$dateTime->format('Y-m-d H:i:s');// Format compatible with MySQL
}
}
$output->writeln(sprintf(' Found user in LDAP: %s (created: %s)',$usernameWithoutDomain,$createdAt));
if(!$isDryRun){
// Add user to common database
$this->userService->addUsernameToCommonDataStore(
$usernameWithoutDomain,
$ipAddress,
$userMetadata['recoveryMailAddress'],
$createdAt
);
$output->writeln(sprintf(' <info>✓ User synced successfully to common database: %s</info>',$usernameWithoutDomain));
}else{
$output->writeln(sprintf(' <comment>Would sync user to common database with recovery email: %s and created_at: %s</comment>',$userMetadata['recoveryMailAddress'],$createdAt));