Ombi-app / Ombi

Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
http://ombi.io
GNU General Public License v2.0
3.73k stars 396 forks source link

Ombi Importing Plex Users That Don't Exist #5064

Open ThePiombino opened 10 months ago

ThePiombino commented 10 months ago

Summary

When User Importer is run, Ombi imports users that do not currently exist on my Plex Server (PS). These are users that previously existed, but have since bee removed. On my PS, I currently share libraries with 12 users (not including myself), also included in "My Friends" list; however, after running Ombi User Importer, Ombi shows 16 users. I have confirmed/attempted:

Ombi Version

4.43.10

What platform(s) does this occur on?

Docker

What database are you using?

SQLite (Default)

Relevant log output

No response

ThePiombino commented 10 months ago

Will add that the only way to keep said users from being added to the users lists is to include them in the "Plex Users excluded from Import" field on the user settings page. This works, which is great; however, I'm assuming I shouldn't have to do this...

tidusjar commented 10 months ago

Ombi grabs the list straight from the Plex API for your server. So I can only assume Plex is still reporting those users.

Are you happy to run a few API calls to see what’s going on?

ThePiombino commented 10 months ago

Apologies for the delayed response. I would be more than happy to debug this however possible. Please advise on next steps, thanks!

Message ID: @.***>

enormouspoon commented 8 months ago

Any further updates to this? I'm seeing the same results on 4.43.14. I'll add the users to the exclude list for now.

tidusjar commented 8 months ago

You need to check if your user is in the list returned from this API call (You can just put the URL in the browser)

https://plex.tv/api/users?X-Plex-Token=AUTH_TOKEN

Replace AUTH_TOKEN with the Plex auth token you find in the Plex settings in Ombi.

That will give you a XML list of users so search for the users. If the user is present in that list that is coming from Plex.tv then Ombi will import that user.

ThePiombino commented 8 months ago

I ran that API call and sure enough the "extra" user are there. Absolutely wild as they are nowhere to be found in my Plex settings. I have since piggybacked on an open, identical issue. Thanks for your help, Jamie!

On Fri, Mar 8, 2024, 3:35 PM Jamie @.***> wrote:

You need to check if your user is in the list returned from this API call (You can just put the URL in the browser)

https://plex.tv/api/users?X-Plex-Token=AUTH_TOKEN

Replace AUTH_TOKEN with the Plex auth token you find in the Plex settings in Ombi.

That will give you a XML list of users so search for the users. If the user is present in that list that is coming from Plex.tv then Ombi will import that user.

— Reply to this email directly, view it on GitHub https://github.com/Ombi-app/Ombi/issues/5064#issuecomment-1986380550, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHESY2FME2774FEZLBM3LDYXIOIXAVCNFSM6AAAAABBLXD2Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWGM4DANJVGA . You are receiving this because you authored the thread.Message ID: @.***>

enormouspoon commented 8 months ago

Appreciate the help diagnosing. Seems it's a Plex issue. I'll continue using Ombi's exclude from import feature. Thanks for everything Jamie!