I have a requirement like, user enters the last name of the person in plain text box, on button click i need to fetch the list of users with that last name using REST API.

How to achieve this ?

2 Answers 2

https://siteurl/sites/KM/_api/web/siteusers?$select=Title&$filter=substringof('lastname', Title)

Tested but case sensitive


Here is informative article which provides how to fetch the user details and profile URL using REST API

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.