Posts

Pre Process Event Handler For Overriding the values with DB values while creating the user in OIM

Image
PreProcess Event Handler for overriding the data with database values while creating a user in OIM While creating a user in OIM directly, Based on the user Login value in OIM, it will override the attributes First Name and Last Name with the values available in database. CODE: package eventHandlers; import java.io.Serializable; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.HashMap; import java.util.Hashtable; import javax.security.auth.login.LoginException; import oracle.iam.identity.usermgmt.api.UserManagerConstants; import oracle.iam.platform.OIMClient; import oracle.iam.platform.context.ContextAware; import oracle.iam.platform.kernel.spi.PreProcessHandler; import oracle.iam.platform.kernel.vo.AbstractGenericOrchestration; import oracle.iam.platform.kernel.vo.BulkEventResult; import oracle.iam.platform.kernel.vo.BulkOrchestration; import oracle.iam.platform.kernel.vo.EventRes...

Grant Entitlements To User Using API

Image
Grant Entitlements To User code: import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.util.HashMap; import java.util.HashSet; import java.util.Hashtable; import java.util.List; import javax.security.auth.login.AccountNotFoundException; import javax.security.auth.login.LoginException; import oracle.iam.identity.exception.NoSuchUserException; import oracle.iam.identity.exception.UserLookupException; import oracle.iam.identity.usermgmt.api.UserManager; import oracle.iam.identity.usermgmt.api.UserManagerConstants; import oracle.iam.passwordmgmt.exception.UserNotFoundException; import oracle.iam.platform.OIMClient; import oracle.iam.platform.authopss.exception.AccessDeniedException; import oracle.iam.platform.entitymgr.vo.SearchCriteria; import oracle.iam.provisioning.api.EntitlementService; import oracle.iam.provisioning.api.ProvisioningConstants; import oracle.iam.provisioning.api.ProvisioningService; import oracle.iam....

list of accounts of a specific login id

list of accounts of a specific login id We can get the list of accounts of a user in OIM console, Accounts Tab. Now we are getting the accounts with the help of  OIM api. we have to write the java code for this. code: package client; import Thor.API.Operations.tcGroupOperationsIntf; import java.util.Hashtable; import java.util.logging.Logger; import oracle.iam.platform.OIMClient; import Thor.API.Operations.tcUserOperationsIntf; import Thor.API.tcResultSet; import java.util.ArrayList; import java.util.List; import oracle.iam.provisioning.api.ProvisioningService; import oracle.iam.provisioning.exception.GenericProvisioningException; import oracle.iam.provisioning.exception.UserNotFoundException; import oracle.iam.provisioning.vo.Account; import java.util.HashMap; public class ListOfAccountsOfAUser {   public ListOfAccountsOfAUser() {     super();   }     private static final String CLASS_NAME = ListOfAccountsOfAUser.clas...

CREATING USER BY USING DYNAMIC VALUES

CREATING USER BY USING DYNAMIC VALUES FOR OIM // TRY THIS CODE IN ECLIPSE OR JDEVELOPER FOR CREATING USER WITH DYNAMIC FIELDS import java.util.HashMap; import java.util.Hashtable; import java.util.Scanner; import oracle.iam.identity.usermgmt.a pi.UserManager; import oracle.iam.identity.usermgmt.v o.User; import oracle.iam.identity.usermgmt.v o.UserManagerResult; import oracle.iam.platform.OIMClient; public class CreateUser { public static void main(String[] args) throws Exception {                          Scanner sc=new Scanner(System.in);                  System.setProperty("OIM.AppSer verType", "wls");     System.setProperty("APPSERVER_ TYPE", "wls");     System.setProperty("java.secur ity.auth.login.config","C:\\ Oracle\\Middleware\\Oracle_ IDM1\\server\\config\\authwl. conf");       ...