Posts

Showing posts from July, 2015

Oracle OIM - Search and Update Organization using java API

In this below example I would like to explain how to search and update organization. To update any organization we need Org_key value. It is like primary key to identify Organization record in OIM. To find organization matching with the information we have, first form the search criteria with available information and call oim search method. It will return list of matched organizations. After that we can update this list of Organization objects and pass to oim org manager modify method for update. If we know org_key, then we no need to find for organization first. Instead set all attributes which want to update along with org_key to Organization object and pass it to modify method. Please refer to below example for the same. package view; import java.util.HashSet; import java.util.Hashtable; import java.util.List; import java.util.Set; import javax.security.auth.login.LoginException; import oracle.adf.share.logging.ADFLogger; import oracle.iam.identity.exception.A

Oracle OIM - Create Organization using java API

In this blog I would like to explain how to create Organization in OIM using java APIs. First we need to establish connection with OIM by passing url and credentials to oimClient. Once the connection is established, then initialize OrganizationManager. OrganizationManager gives us a way to manage organizations in OIM Please refer to sample java code below. import java.util.Hashtable; import javax.security.auth.login.LoginException; import oracle.adf.share.logging.ADFLogger; import oracle.iam.identity.exception.AccessDeniedException; import oracle.iam.identity.exception.OrganizationManagerException; import oracle.iam.identity.exception.RoleCategorySearchException; import oracle.iam.identity.orgmgmt.api.OrganizationManager; import oracle.iam.identity.orgmgmt.vo.Organization; import oracle.iam.platform.OIMClient; public class CreateOrganization {     private static ADFLogger logger = ADFLogger.createADFLogger(CreateOrganization.class);     //OIM User name     public S