How to get a list of SharePoint users by pattern name

I am using the SharePoint API to write an iPhone / iPad client. The GetUserCollectionFromSite method returns all users. I searched in the MSDN specification:

http://msdn.microsoft.com/en-us/library/websvcusergroup.usergroup.getusercollectionfromsite.aspx

But apparently there is no way to send a request with something like:

 <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetUserCollectionFromSite xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/"></GetUserCollectionFromSite> <UsersPattern>Ad</UsersPattern> </soap:Body> </soap:Envelope> 

And the answer with user inputs matching the "Ad" pattern, for example Adam, etc.

+4
source share
1 answer

Unable to query hidden user names. You can receive only all users and filter them on your side.

0
source

Source: https://habr.com/ru/post/1491833/


All Articles