Sample code
The sample code and data graphs provided in this section cover end-to-end scenarios and snippets for working with users and groups, search operations, extending virtual member manager schema, assigning federated repository management rights, and plug-in manager.
Subtopics
- Sample code for working with users, groups, group members, and group memberships
Use the end-to-end sample code and data graphs for basic operations involving users, groups, group members, and group memberships. - Sample code for removing users from a group
Use the sample code snippet and data graphs to remove users from a group by using GroupMembershipControl. - Sample code for creating an entity in a hierarchy and getting descendants and ancestors
Use the sample code snippet and data graphs to create an entity in a hierarchy and to get the descendants and ancestors of an entity by using the get() method. - Sample code for getting nested groups
Use the sample code snippet and data graphs to get nested groups by using the get() method and GroupMembershipControl. - Sample code for searching and parsing search results
Use the sample code and data graphs to search by using the search() method, build search filters, and parse search results. - Sample code for searching using search bases
Use the end-to-end sample code and data graphs to search by using the different search bases. - Sample code for performing a paged search with sorted results
Use the sample code and data graphs for performing paged search with sorted results by using both the SortControl and PageControl data objects. - Sample code for searching for changed entities
Use the end-to-end sample code and data graphs for search operations on changed entities. - Sample code for searching for changed and deleted entities
Use the sample code snippet and data graphs to search for changed and deleted entities. - Sample code for extending schema in the file repository
Use the end-to-end sample code and data graphs to extend the schema by adding a new property to an existing entity type in file repository. - Sample code for extending the schema in the property extension repository
Use the sample code snippet and data graphs to extend the schema in the property extension repository. - Sample code for extending the schema in an LDAP repository
Use the sample code snippet and data graphs to extend the schema in an LDAP repository. - Sample code for creating a new extended entity type in the default namespace
Use the sample code snippet and data graphs to create an entity type, which extends from a built-in entity type, in the default namespace. - Sample code for creating an extended entity type in a custom namespace
Use the sample code snippet and data graphs to create an entity type, which extends from a built-in entity type, in a custom namespace. - Sample code for search based on extended property value
Use the sample code snippet and data graph to perform a search based on the value of an extended property. - Sample code for extending schema across multiple security domains
The configuration steps, commands, sample code, and data graphs for extending property schema across multiple security domains are provided here. - Sample code for using federated repository management rights
The end-to-end steps, commands, and sample code snippets required for enabling users who are not WebSphere Application Server administrators to access the virtual member manager application programming interface (APIs) in a multiple security domain environment are provided here. - Sample code for plug-in manager
A sample plug-in is provided to familiarize you with the features of the virtual member manager plug-in manager framework.


File name: samplecode.html