- package com.oimacademy.NeedEvaluate;
- import java.util.HashMap;
- import java.util.HashSet;
- import java.util.Map;
- import java.util.Set;
- import oracle.iam.platform.entitymgr.vo.SearchCriteria;
- import oracle.iam.provisioning.api.ProvisioningConstants;
- import oracle.iam.provisioning.api.ProvisioningServiceInternal;
- import oracle.iam.provisioning.impl.ProvisioningServiceInternalImpl;
- import com.oimacademy.connection.Platform;
- public class SearchAccountsForUser {
- private static ProvisioningServiceInternal provisioningServiceInt=Platform.getService(ProvisioningServiceInternal.class);
- public static void main(String[] args) {
- Set<String> userKeys = new HashSet<String>();
- userKeys.add("14");
- Map<String, String> controls = new HashMap<String, String>();
- controls.put("Auditable", "false");
- SearchCriteria userSearchCriteria = new SearchCriteria(ProvisioningConstants.AccountSearchAttribute.USER_ID.getId(), userKeys, SearchCriteria.Operator.IN);
- SearchCriteria appInstSearchCriteria = new SearchCriteria(ProvisioningConstants.AccountSearchAttribute.APPINST_ID.getId(), "62", SearchCriteria.Operator.EQUAL);
- SearchCriteria sc = new SearchCriteria(userSearchCriteria, appInstSearchCriteria, SearchCriteria.Operator.AND);
- provisioningServiceInt.searchAccounts(sc, controls);
- }
- }
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 SearchAccountsForUser
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