How to get the User list on content server using CWS API
Comments
-
There is a way, by using the MemberService's SearchForMembers function.
// set to an empty string to match everything
string searchString = "";// Create the search options to find all members
MemberSearchOptions searchOptions = new MemberSearchOptions();
searchOptions.Scope = SearchScope.SYSTEM;
searchOptions.Filter = SearchFilter.USER;
searchOptions.Column = SearchColumn.NAME;
searchOptions.Matching = SearchMatching.CONTAINS;
searchOptions.Search = searchString;
searchOptions.PageSize = pageSize;// Get the initial page handle for our search results PageHandle
pageHandle = MemberServiceInstance.SearchForMembers(ref fOTAuth, searchOptions);MemberSearchResults results = MemberServiceInstance.GetSearchResults(ref fOTAuth, pageHandle);
0 -
The MemberService should be under the same directory as the other ones (ex. {CS install dir}\webservices\dotnet\cws).
https://knowledge.opentext.com/knowledge/cs.dll?func=ll&objId=45500683&objAction=browse&viewType=1
Under the 'Getting Started (C#)' section > "Add a Service Reference" > step 5.
0 -
In the future please direct all CWS related questions to the forum located on the knowledge center. Developer.opentext.com is intended to provide support for REST API specific questions.
0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 105 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management