Skip to main content

Posts

Showing posts from November, 2015

Create User through SCIM-REST OIM PS3

Below are the Parameters to create a user in OIM through REST: URL: http://OIM_HOST:14000/idaas/im/scim/v1/Users Authentication:  Username(xelsysadm): Password Request Type: Post Request Content: Application/scim+json Request Body: { "schemas": [ "urn:ietf:params:scim:schemas:extension:oracle:2.0:OIG:User", "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:oracle:2.0:IDM:User", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" ], "userName": "USER_LOGIN", "password":"PASSWORD", "name": { "givenName": "FIRST_NAME", "familyName": "LAST_NAME" }, "emails": [ { "value": "EMAIL", "type": "work" } ], "userType": "Full-Time", "urn:ietf:params:scim:schemas:extension:enterprise:2

OIM Connection and Create User API - 11g R2 PS3

For Setting up OIM API Environment on local desktop download any IDE like Eclipse and create a Java Project. Connect to the OIM Environment and download all the libs from OIM Server as below: <Oracle_IDM_Home>/designconsole/ext <Oracle_IDM_Home>/designconsole/lib <MW_home>/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar <MW_home>/wlserver_10.3/server/lib/wlfullclient.jar Attach all these jars in the Java Build Path of the project. Then write a connection code to OIM. Sample code is as below: package com.oracle.oim; import java.util.Hashtable; import javax.security.auth.login.LoginException; import oracle.iam.platform.OIMClient; public class Connection  { public OIMClient OimConnection()    { oracle.iam.platform.OIMClient oimClient = null; try  {        Hashtable<Object, Object> env = new Hashtable<Object, Object>();        env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, "we