When I delete my iPhone and want to restore a backup via iCloud, 6 unknown Apple IDs are
presented during the process, asking me to enter the password or to skip the step.
The non-own Apple ID accounts are all presented sequentially at the beginning, after completing
the backup during the registration process and after I first had to enter my own Apple ID. Once
I've ignored the last "odd" Apple ID by using "Skip this step" when the last ID is skipped, iCloud Backup automatically starts downloading and installing. When the backup is finished and the iPhone asks me to enter the code for my SIM card, all “strange” Apple IDs follow again, which I then have to ignore. (My Apple ID is associated with the email address I used as the sender for this email.)