Read OIM IT Resource via API
Objective: Many a times it becomes necessary to read OIM IT resource via API. This method will help you do the same. Let's start: Initialize OIM client as usual. You can follow my other post to get started with writting OIM client. Following is the method which you can use to read IT resource by providing IT Resource Name. public static HashMap<String, String> getITResourceAttributeInMap(String itResourceName) { HashMap<String, String> adITResourcefileds = new HashMap<String, String> (); try{ tcITResourceInstanceOperationsIntf tcITResourceIntf = oimClient.getService(tcITResourceInstanceOperationsIntf.class); HashMap<String, String> searchcriteria = new HashMap<String, String>(); searchcriteria.put("IT Resources.Name", itResourceName); tcResultSet resultSet = tcITResourceIntf.findITResourceInstances(searchcriteria); ...