jacobwgillespie / plex-sync

:clapper: Command line utility for synchronizing Plex Media Server watched / seen status between multiple servers
https://www.npmjs.com/package/plex-sync
Other
303 stars 36 forks source link

Managed user tokens? #57

Open StevenNexus opened 7 years ago

StevenNexus commented 7 years ago

Is there a way to get the tokens for the managed users? Right now I only see tokens for the main account so the sync only works to sync the watch history of the main account.

skinnyzaz commented 7 years ago

I would also like a solution for this, I have managed users and some friends that access my servers. Is there any way to setup a cron every night that would be able to sync watched status between the servers for all users?

pottertech commented 7 years ago

I would like to see and SYNC ALL USERS feature added. Thanks for all the effort in creating plex-sync in the first place. It is a wonderful start.

SteveW25561 commented 6 years ago

@pottertech and @skinnyzaz — would love to sync ALL users across all my Plex servers (I have the same media files accessible via my Plex on Mac and Synology servers). Thanks for this!

FernandoMiguel commented 6 years ago

also looking to sync specific users. anyone found a way?

FernandoMiguel commented 6 years ago

if you enable tokens in logs and restart the server, you should be able to see the token in chrome dev tools

skinnyzaz commented 6 years ago

I tried to sync a friends watch status that uses my server, I got his token using a powershell script but it failes with an error TypeError: Cannot read property '$' of undefined

But when I use the same method to get my accounts token and use the same command it works. Does this mean I can only sync my own content on my server?

willcm commented 6 years ago

@skinnyzaz @FernandoMiguel please can you explain the steps you used to get the managed user's token? I'd like to sync history across multiple plex servers - thanks!

Kazz3r24 commented 6 years ago

For those looking for to get user tokens, Tautulli is an easy to read way to view logs and get user tokens if the option is enabled in your PMS settings.

SteveW25561 commented 6 years ago

@Kazz3r24 Thanks for the tip! I have Tautulli installed but can't see a way to look at user tokens. I do have the "Allow Plex Media Server tokens in logs" option selected in the General preferences in Plex.

Any tips on where to look for the tokens in Tautulli? I looked in the User tab, and the logs, History tabs and they just show the username. Under "view logs" I can see a user number when I search the user name but not any token.

Kazz3r24 commented 6 years ago

@SteveW25561 No worries, if you have the option selected in PMS be sure to restart the server if you haven't already since it was enabled. From there, if you go into Tautulli and select "view logs" under dropdown menu, you'll then see the Plex Media Server Logs, make sure you're viewing all logs and you have verbose logging enabled in PMS you'll then be able to filter for Auth: in Tautulli and it should show you all related entries.

Let me know how you fair out!

fredtbrown commented 6 years ago

I'm trying to figure out how to find my managed users tokens. I have found a few tokens, but they all seem to be just for my main profile that I don't use. I have 14 managed users and really only care about sync of a few, but not had a lot of luck finding the managed user tokens. Has anyone else had luck? If so please share any tips. Thanks!

Kazz3r24 commented 6 years ago

Managed users do not have a token. The token is only used for authentication with the main Plex authentication server. Because managed users don't technically have a Plex account, they will not have a Plex token.