I'm trying to show result depend upon input text

E.g. If user enter letter A, I want to show User form user profile with last name start with letter A.

so my question is Is it possible to query User Profile like we normal did in web part?

If not please suggest some better options


1 Answer 1


How about using the search? There is already a Managed Property LastName you could use for that. An OOTB way would be a preconfigured SearchBox with a query similar to LastName:{searchTerm}*. Also you should change the result source to People Results.

The UI could be changed via DisplayTemplates, or you simply use the given one for Persons. You also have the option to add a refiner webpart which increases the usability.

  • But OOTB have some limitation to display users, I wan't to display 2000 users with letters last name A Nov 29, 2016 at 10:46
  • 1
    Well paging / filtering is a thing nowdays since no user really wants to see that many results. Of course you could search with paging to get all results if you have to. Some reference for getting all results from search - thesharepointguide.com/…
    – Mx.
    Nov 29, 2016 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.