In the organization deployed sharepoint farm 2013.
In the User Profile Service settings, three connections are created in three different domains.
I need to get all the user profiles from one specific domain (connection).
Does anyone know how to get user profiles from a specific domain ?
I have this code:
function getAllUsers() {
var clientContext = new SP.ClientContext.get_current();
var keywordQuery = new Microsoft.SharePoint.Client.Search.Query.KeywordQuery(clientContext);
keywordQuery.set_queryText(searchTerm);
keywordQuery.set_sourceId("B09A7990-05EA-4AF9-81EF-EDFAB16C4E31");
keywordQuery.set_rowLimit(rowsPerPage);
keywordQuery.set_trimDuplicates(false);;
keywordQuery.set_startRow(startRow);
var searchExecutor = new Microsoft.SharePoint.Client.Search.Query.SearchExecutor(clientContext);
results = searchExecutor.executeQuery(keywordQuery);
clientContext.executeQueryAsync(onQuerySuccess, onQueryError);
}
I did not find such a property in the search results
Maybe I somehow use this property SPS-SourceObjectDN? but how?