SearchPrinciples

Function

$().SPServices

Web Service

People

Operation

SearchPrinciples

Example

Here's an example provided by StefanBauer. Thanks!

To search Principals the following code works:

$().SPServices({
  operation: "SearchPrincipals",
  webURL: "/",
  searchText: "bauer",
  maxResults: 100,
  SPPrincipalType: "SPPrincipalType.User",
  completefunc: function (xData, Status) {
    alert(xData);
  }
});

Back to top