1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | package com.massiveGaze.orgs; import java.util.Calendar; import oracle.iam.identity.orgmgmt.api.OrganizationManager; import oracle.iam.identity.orgmgmt.vo.Organization; import oracle.iam.platform.OIMClient; import com.massiveGaze.connection.Platform; import oracle.iam.platform.authopss.vo.AdminRole; import oracle.iam.platform.authopss.vo.AdminRoleMembership; import oracle.iam.platformservice.api.AdminRoleService; public class CreateOrganizations { protected static OrganizationManager m_orgManagerService ; public static int getRandomNumber() { java.util.Random r = new java.util.Random(Calendar.getInstance() .getTimeInMillis()); int randint = Math.abs(r.nextInt()) % 1000; return randint; } public static String createorg() throws Exception { m_orgManagerService = (OrganizationManager) Platform.getService(OrganizationManager.class); String result=null; Organization org = new Organization(); for(int i=1; i< 1000;i++){ org.setAttribute("Organization Name", "TEST_ORG_"+i); org.setAttribute("Organization Customer Type", "System"); org.setAttribute("Organization Status", "Active"); result = m_orgManagerService.create(org); System.out.println("Organization Key : " + result); AdminRoleService arsi = Platform.getService(AdminRoleService.class); AdminRole ar= arsi.getAdminRole("OrclOIMUserViewer"); AdminRoleMembership arm = new AdminRoleMembership("5", ar, result, true); arsi.addAdminRoleMembership(arm); AdminRole ar1= arsi.getAdminRole("OrclOIMOrgAdministrator"); AdminRoleMembership arm1 = new AdminRoleMembership("5", ar1, result, true); arsi.addAdminRoleMembership(arm1); System.out.println("done"+i); } System.out.println("Done"); //System.out.println("Updated Password with key "+updateOrgPasswordPolicy(result)); return result; } public static void main(String[] args) throws Exception { CreateOrganizations createorgObj = new CreateOrganizations(); createorgObj.createorg(); //createorgObj.deleteOrganizations(); } } |
Oracle Identity Manager (OIM R2PS2/PS3/12C) is a highly flexible and scalable enterprise identity administration system that provides operational and business efficiency by providing centralized administration & complete automation of identity and user provisioning events across enterprise as well as extranet applications.
OIM Create Bulk Oraganizations API
Subscribe to:
Posts (Atom)
About OIM
Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...
Popular Posts
-
OIM API's Sample Code : Videos: Massive Gaze Videos Connection Related API's : OIM DB Connection/ Data Source connection ...
-
Videos: Massive Gaze Videos 1. Basic OIM Information 2. MDS Export/Import 3. Steps For R2PS2 / R2PS3 Custom Pre-processor Ev...
-
Videos: Massive Gaze Videos 1. Query to get OIM Provsioned/provisioning Account details 2. Query to get usr keys For Rejected / ...
No comments:
Post a Comment