Here is the code snippet to search organization in OIM 11g R2 through APIs:
Set retAttrs = new HashSet();
SearchCriteria searchCriteria = new SearchCriteria("Organization Name", "IDMAPI", SearchCriteria.Operator.EQUAL);
List organizationList = organizationManager.search(searchCriteria, retAttrs, null);
for(Organization organization:organizationList){
HashMap attributeMap = organization.getAttributes();
System.out.println("Organization Attribute Map:: " + attributeMap);
}
Set
SearchCriteria searchCriteria = new SearchCriteria("Organization Name", "IDMAPI", SearchCriteria.Operator.EQUAL);
List
for(Organization organization:organizationList){
HashMap attributeMap = organization.getAttributes();
System.out.println("Organization Attribute Map:: " + attributeMap);
}