HAPPY NEW YEAR 2017

Identity And Access Management - Rajiv Dewan

Create Organization API 11g R2



 Here is the code snippet to create Organization in OIM 11g R2 through API:


Organization organization = new Organization();
organization.setAttribute("Organization Name", "IDMAPI");
organization.setAttribute("parent_key", "3"); // 3 is the key of Top Organization
organization.setAttribute("Organization Customer Type", "Company");
try {String orgKey = organizationManager.create(organization);
System.out.println("Org Key :: " + orgKey);
} catch (OrganizationManagerException e) {
e.printStackTrace();
} catch (AccessDeniedException e) {
e.printStackTrace();
}