def METHOD_NAME(request):
    row_offset = int(request.params.get('row_offset', 0))
    # Redirect negative row offsets (PSQL errors on negative offset values)
    if row_offset < 0:
        raise HTTPSeeOther("/admincontrol/finduser")
    form = {
        'targetid': request.params.get('targetid', ''),
        'username': request.params.get('username', '').strip(),
        'email': request.params.get('email', '').strip(),
        'excludebanned': request.params.get('excludebanned', ''),
        'excludesuspended': request.params.get('excludesuspended', ''),
        'excludeactive': request.params.get('excludeactive', ''),
        'dateafter': request.params.get('dateafter', ''),
        'datebefore': request.params.get('datebefore', ''),
        'ipaddr': request.params.get('ipaddr', ''),
        'row_offset': row_offset,
    }
    return Response(d.webpage(request.userid, "admincontrol/finduser.html", [
        # Search results
        moderation.finduser(**form),
        # Pass the form and row offset in to enable pagination
        form,
        row_offset
    ], title="Search Users: Results"))