people search shows everyone by default?

Hi guys, I'm working with people search in sharepoint 2013 in the cloud (office 365).

I created an Enterprise Search Center sub-site in order to search for all the user we have in the user profile list. I'm available to search for users in people search, but the first time I enter in the people search page I want to return all the users, then I want to filter by first name or last name, but by default I want all users without entering any word in the search textbox.

Can I do that? How? 

Can I filter by sharepoint group with people search in office 365?

Thanks in advance.

Joan


January 6th, 2014 11:33pm

Hi,

If you search *, it will display all the users as results.

You can use JQuery to redirect the page to search *.

Add a content edit web part on the page. Edit the web part and insert the code below into it.

    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

    <script type="text/javascript">

        $(document).ready(function () {

            $("a[title='Searching People']").attr("onclick","");

            $("a[title='Searching People']").click(function () {

                window.location = "peopleresults.aspx?k=*";

            });

        });

    </script>

Thanks.

Free Windows Admin Tool Kit Click here and download it now
January 8th, 2014 8:28am

Thanks Tracy, this's what I was looking for, thanks again
January 13th, 2014 11:34am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics