'Get a user\'s details.
Required parameters:
user_id (str):          The id of the Plex user
Optional parameters:
None
Returns:
json:
{"allow_guest": 1,
"deleted_user": 0,
"do_notify": 1,
"email": "Jon.Snow.1337@CastleBlack.com",
"friendly_name": "Jon Snow",
"is_allow_sync": 1,
"is_home_user": 1,
"is_restricted": 0,
"keep_history": 1,
"shared_libraries": ["10", "1", "4", "5", "15", "20", "2"],
"user_id": 133788,
"user_thumb": "https://plex.tv/users/k10w42309cynaopq/avatar",
"username": "LordCommanderSnow"'

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

    if user_id:
        user_data = users.Users()
        user_details = user_data.get_details(user_id=user_id)
        if user_details:
            return user_details
        else:
            logger.warn(u'Unable    to    retrieve    data    for    get_user.')
    else:
        logger.warn(u'User    details    requested    but    no    user_id    received.')
