'Get request to search user table for specific users according to
search term.
This need a user have a administrator access in Synapse.'

@defer.inlineCallbacks
def on_GET(self, request, target_user_id):

    target_user = UserID.from_string(target_user_id)
    requester = (yield self.auth.get_user_by_req(request))
    is_admin = (yield self.auth.is_server_admin(requester.user))
    if (not is_admin):
        raise AuthError(403, 'You    are    not    a    server    admin')
    if (not self.hs.is_mine(target_user)):
        raise SynapseError(400, 'Can    only    users    a    local    user')
    term = request.args.get('term')[0]
    if (not term):
        raise SynapseError(400, "Missing    'term'    arg")
    logger.info('term:    %s    ', term)
    ret = (yield self.handlers.admin_handler.search_users(term))
    defer.returnValue((200, ret))
