- package com.oimacademy.provision;
- import static oracle.iam.identity.utils.Constants.FIRSTNAME;
- import static oracle.iam.identity.utils.Constants.SEARCH_SORTEDBY;
- import static oracle.iam.identity.utils.Constants.SEARCH_SORTORDER;
- import java.util.HashMap;
- import java.util.List;
- import java.util.Map;
- import oracle.iam.platform.entitymgr.spi.entity.Searchable.SortOrder;
- import oracle.iam.platform.entitymgr.vo.SearchCriteria;
- import oracle.iam.provisioning.api.ApplicationInstanceService;
- import oracle.iam.provisioning.api.EntitlementService;
- import oracle.iam.provisioning.api.ProvisioningService;
- import oracle.iam.provisioning.vo.Account;
- import oracle.iam.provisioning.vo.AccountData;
- import oracle.iam.provisioning.vo.ApplicationInstance;
- import oracle.iam.provisioning.vo.Entitlement;
- import oracle.iam.provisioning.vo.EntitlementInstance;
- import oracle.iam.provisioning.vo.FormInfo;
- import com.oimacademy.connection.Platform;
- public class provisionAccount {
- private static ProvisioningService service=Platform.getService(ProvisioningService.class);
- private static ApplicationInstanceService applicationInstanceService=Platform.getService(ApplicationInstanceService.class);
- public static void main(String [] args){
- try {
- ApplicationInstance applicationInstance=applicationInstanceService.findApplicationInstanceByName("DisconnectedApp");
- FormInfo formInfo = applicationInstance.getAccountForm();
- System.out.println("Object Type ->"+applicationInstance.getObjectName());
- System.out.println("ApplicationInstanceName ->"+applicationInstance.getApplicationInstanceName());
- System.out.println("ResourceName ->"+applicationInstance.getItResourceName());
- System.out.println("ResourceName ->"+applicationInstance.getItResourceKey());
- Map parentData = new HashMap();
- parentData.put("UD_DIS7601", applicationInstance.getApplicationInstanceName().toString());
- String formKey = String.valueOf(formInfo.getFormKey());
- AccountData accountData = new AccountData(formKey, null, parentData);
- Account account = new Account(applicationInstance, accountData);
- account.setAccountType(Account.ACCOUNT_TYPE.Primary);
- long oiuKey =0;
- for(int i=5;i<9;i++) {
- oiuKey= service.provision(""+i, account);
- System.out.println("Provisioned Account for User ->"+i);
- }
- }catch (Exception e){
- System.out.println("In exception block");
- e.printStackTrace();
- }
- }
- }
Oracle Identity Manager(OIM) is the Provisioning Solution from oracle. This page contains an index with references to all OIM related posts in the oracle identity manager Academy blog. The posts included herein are intended to provide oracle identity management customers and developers with technical information about best practices for implementing OIM based solutions.
OIM API to Provision Account To User
Subscribe to:
Post Comments (Atom)
-
Connection Related API's : OIM DB Connection/ Data Source connection OIMClient API / OIMConnection API OIM Platform API to getSer...
-
Error : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframewor...
-
In this post, we set the middle name as “MiddleName” if user does not provide middle name during user create operation. Below are high...
No comments:
Post a Comment