'Get a library\'s user statistics.
Required parameters:
section_id (str):               The id of the Plex library section
Optional parameters:
None
Returns:
json:
[{"friendly_name": "Jon Snow",
"total_plays": 170,
"user_id": 133788,
"user_thumb": "https://plex.tv/users/k10w42309cynaopq/avatar"
{"platform_type": "DanyKhaleesi69",
"total_plays": 42,
"user_id": 8008135,
"user_thumb": "https://plex.tv/users/568gwwoib5t98a3a/avatar"'

@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of('admin'))
@addtoapi()
def get_library_user_stats(self, section_id=None, **kwargs):

    if section_id:
        library_data = libraries.Libraries()
        result = library_data.get_user_stats(section_id=section_id)
        if result:
            return result
        else:
            logger.warn(u'Unable    to    retrieve    data    for    get_library_user_stats.')
    else:
        logger.warn(u'Library    user    stats    requested    but    no    section_id    received.')
