immich SSO migration path for existing user?
from xantoxis@lemmy.world to selfhosted@lemmy.world on 24 Jul 2024 17:55
https://lemmy.world/post/17915394

I’m an immich user, switching from a standard u/p login to an SSO-based login.

I’ve tested the SSO login successfully, it seems to work, and I’m not having any issues with that.

However, the account generated by SSO login has a different email address and identifiers from the account I created earlier. I don’t want to start from scratch with my photos, as I’ve spent countless hours updating metadata.

I think I need one of the following:

  1. a supported, tested way to merge an account with another account. I don’t know if this is going to be similar to the “partner sharing” feature. I don’t want to simply share the photos, I want to have full control over them; including, if I delete a photo, it’s gone forever.
  2. a tested way to manually update the database to change all identifiers over to the new account
  3. a way to login to the existing account via my SSO portal. I can create any SSO user I want, for example.
  4. a way to export the entire library with metadata and re-import it to the new SSO account, structured exactly the same way. Ideally this would also restore anything ML has done with my photos, but it’s not a disaster if I have to wait for ML to recreate what it already did in the new account.

Does anyone have information on how to achieve one of the above?

Followup question:

#selfhosted

threaded - newest

coffee_chum@lemmy.ml on 24 Jul 2024 18:02 collapse

I’m pretty sure it’s a lot easier than all of that. Account settings -> oauth -> link to oauth. That’s it. Maybe gets more complicated but sounds like that should be it for your use case.

just_another_person@lemmy.world on 24 Jul 2024 18:17 next collapse

This is the answer. Otherwise, you’ll need to go into the DB and perform a migration of the objects to that new user, but the chances you’ll cover all the bases there and not cause issues will be slim.

xantoxis@lemmy.world on 24 Jul 2024 18:34 collapse

Thanks! I’ll try this and report back. This sounds like a version of (#1) - merge accounts.