# Plex API to get all users in the Plex server

**URL:** <https://forums.plex.tv/t/plex-api-to-get-all-users-in-the-plex-server/222592>\
**Category:** General Discussions\
**Created:** [January 22, 2018, 11:31pm UTC](https://forums.plex.tv/t/plex-api-to-get-all-users-in-the-plex-server/222592 "2018-01-22T23:31:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhou](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mhou/32/317235_2.png) [@mhou](https://forums.plex.tv/u/mhou)\
**Post date:** [January 22, 2018, 11:31pm UTC](https://forums.plex.tv/t/plex-api-to-get-all-users-in-the-plex-server/222592/1 "2018-01-22T23:31:46Z")

</div>

HI All,

I can currently researching in the Plex API calls. I am wondering that is there a API call which I can see a list of all users/friends in my Plex Server?

Also, the call I have making all return as XML, is there a way that I can have it return as JSON string?

Thank you,  
Michael

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [January 23, 2018, 12:58am UTC](https://forums.plex.tv/t/plex-api-to-get-all-users-in-the-plex-server/222592/2 "2018-01-23T00:58:33Z")

</div>

I recommend you to analyse the source code of [WebTools](https://forums.plex.tv/discussion/288191/webtools-unsupported-appstore/p1#top "WebTools")  
It is using the API and I know that it reads the account list (for copying playlists to the other accounts)

---

<div class="post-metadata">

**Author:** ![hthighway](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hthighway/32/82003_2.png) [@hthighway](https://forums.plex.tv/u/hthighway)\
**Post date:** [January 23, 2018, 2:29am UTC](https://forums.plex.tv/t/plex-api-to-get-all-users-in-the-plex-server/222592/3 "2018-01-23T02:29:39Z")

</div>

You could add  
`'Accept': 'application/json'`  
to your headers.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 12:29am UTC](https://forums.plex.tv/t/plex-api-to-get-all-users-in-the-plex-server/222592/4 "2020-01-08T00:29:48Z")

</div>


