Migrate managed user to 'Friend'

I have been running plex for years now and my oldest daughter just moved out on her own. I gave her our account password so she can access plex on her tv and laptop from her new place; but I am really not thrilled about that solution since I don’t restrict home users with pins or anything (so she or one of her guests could switch to my user and delete things). I would much rather her get her own plex.tv account and access my server as a ‘friend’, but with years of viewing history that would be lost, I hate to do that to her.

I would like the option to either:

a. Backup her history and any other useful information and restore it to a new ‘friend’ account
or
b. Automate the conversion; click a button, enter the email address, send the invite.
or
c. Any other solution where she would not have to use my plex.tv account to access the server to see her managed user data.

I recently used this script to accomplish what you are describing.

GitHub - cetteup/transfer-plex-user-viewstate: Transfer Plex viewstate information (watched/unwatched, view progress and ratings) between users

I was able to migrate viewing history from a managed user to an independent friend account successfully.

Have a database backup before you attempt this, obviously. :slight_smile:

1 Like

Thanks I will have to study what your script is doing. I started poking around in the db and came to the conclusion that I could probably just do a simple update account_id = x where account_id = y on the metadata_item_views and metadata_item_settings tables after I have her create her new ‘friend’ account. I suspect thats all that needs to happen but will study your script to see if I am overlooking anything.

2022 clean-up: duplicate