List Plex Users

List users for a given Plex server using Python

# run 'pip3 install plexapi' first
# run the code below with python 3.x

from plexapi.myplex import MyPlexAccount
account = MyPlexAccount('your_username', 'your_password')
plex = account.resource('your_server').connect()

users = plex.myPlexAccount().users()

for user in users:
    print(user.title)