Skip to content

Support for non-admin Plex users? #158

Open

Description

@sameleff

Is Explo able to create playlists as a non-admin Plex user? I was planning to run separate Explo instances for a few of my Plex users (each instance would be tied to their listenbrainz user as well as their Plex user) in order to support music discovery for each of them. However, I receive Plex authentication errors when I attempted to use a non-admin username/password. Explo began to work once I used the X-Plex-Token, but this is an admin-level API key and therefore the playlists were created within the admin account.

For additional context, and to help explain why this matters to me: If you aren't familiar, Plex does not currently share playlists between users efficiently...only admin users can share playlists, and those shared playlists then show up in a separate library which makes finding them cumbersome.

Activity

  1. DannyTheHeretic commented on May 30, 2026

    @DannyTheHeretic
    Contributor

    Yes it does, you have to use the Admin credentials in the ADMIN_SYSTEM_USERNAME and ADMIN_SYSTEM_PASSWORD, i built this functionality myself for the exact same case, the people who you share with use SYSTEM_USERNAME and SYSTEM_PASSWORD and your creds go in the admin one. It Works Great.

  2. DannyTheHeretic commented on May 30, 2026

    @DannyTheHeretic
    Contributor

    Also, I personally, wouldnt use an API KEY for Plex, it creates more headaches than it solves, i would just comment it out of your .env if you can.

  3. LumePart commented on May 30, 2026

    @LumePart
    Owner

    It isn't released yet though, you can try it with the :dev image (instead of :latest)

  4. sameleff commented on Jun 10, 2026

    @sameleff
    Author

    I finally had some time to try out the :dev image and implement the changes you both recommended, but I now receive a sign-in error with Plex ERROR setup failed: got 401 from https://plex.tv/api/v2/users/signin.json. Both my Plex admin and user accounts have MFA enabled (which is why I was using the API key originally). NOTE: now, I receive the same sign-in error whether I use the API key or not.

  5. DannyTheHeretic commented on Jun 10, 2026

    @DannyTheHeretic
    Contributor

    currently tracking this in #172.

    if you want to ensure this works, i would really love it if you could test it out (i dont have family who use mfa on plex), i have it packaged at
    ghcr.io/dannytheheretic/explo:dev
    or
    ghcr.io/dannytheheretic/explo:0.5.17

  6. DannyTheHeretic commented on Jun 11, 2026

    @DannyTheHeretic
    Contributor

    update for tracking, added webui portions for it,
    now its version
    ghcr.io/dannytheheretic/explo:0.5.21
    ghcr.io/dannytheheretic/explo:dev
    or
    ghcr.io/dannytheheretic/explo:latest

  7. LumePart commented on Jun 12, 2026

    @LumePart
    Owner

    Released in v1.1.0

  8. sameleff commented on Sep 10, 2026

    @sameleff
    Author

    Ok, I finally got some free time to sit down and look at this again - and I still seem to be doing something wrong :(

    I confirmed I'm running Explo v.1.2.0, which should include this fix.
    Explo connects to Plex if I use the ADMIN_API_KEY but it doesn't work with just the API_KEY env variable. Interestingly, it also doesn't work if I use both the ADMIN_API_KEY and the API_KEY specific to the user for whom I want Explo to build the listenbrainz playlist.

    Based on the updated docs my assumption was that I needed to include both the ADMIN_API_KEY (which should be the X-Plex-Token for my server) and the API_KEY (which should be the user-specific access token). For background, I followed the following post on Reddit to find the correct user-specific token for my non-admin plex user.

    What am I doing wrong?

  9. sameleff commented on Sep 10, 2026

    @sameleff
    Author

    If it helps:

    Here is the error (ok, warning) I receive when I configure just the API_KEY:
    WARN [plex] failed to delete playlist: got 403 from http://192.168.1.60:32400/playlists/Notify: true
    WARN [plex] failed to schedule a library scan: refreshPlexLibrary(): got 403 from http://192.168.1.60:32400/library/sections/7/refresh
    Even stranger, Explo claims it finished successfully, but the playlist is never created (for any user: target, admin, or otherwise).

    Here is the error I receive when I configure both the API_ADMIN_KEY and the API_KEY:
    ERROR setup failed: failed to make request to plex: got 401 from http://192.168.1.60:32400/library/sections/allNotify: true

  10. LumePart commented on Sep 10, 2026

    @LumePart
    Owner

    Hmmm, I tried it and it doesn't work for me either (API_KEY with admin account alone does though). I will try to troubleshoot it further later

    @DannyTheHeretic maybe you can also take a look, if you have the time?

    I have a test instance with only 1 account, so I just tried to run it with the same API key defined in API_KEY and ADMIN_API_KEY

    I also tried with admin/regular username and password, but the admin client won't let me authenticate (this could be an issue with testing with a singular account).

  11. sameleff commented on Sep 21, 2026

    @sameleff
    Author

    I'm not sure if any of these links help, but a similar (same?) issue cropped up in Music Assistant recently. Here's the proposed fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions