1 Reply Latest reply on Aug 17, 2011 10:26 AM by Kuldeep

    OIM 11g - retrieving all the provisioned accounts of an user

    881156
      Hi,

      I would like to retrieve all the provisioned objects of an user ,using OIM 11g API.I couldnt find anything like getObjects() in UserManager class.Any help?.Thanks.
        • 1. Re: OIM 11g - retrieving all the provisioned accounts of an user
          Kuldeep
          Hi getObjects () is not exopsed in UserManger.
          You have to use leggaey approach by tcUserOperationsIntf , it works in OIM 11g.
          sample code
          tcUserOperationsIntf userOperationsIntf  =Platform.getService(tcUserOperationsIntf.class);
          tcResultSet  resultGetObjects = userOperationsIntf.getObjects(plUserKey);
          int countResultGetObjects = resultGetObjects.getRowCount();
          
                         for (int j = countResultGetObjects; --j >= 0;) {
                              resultGetObjects.goToRow(j);
                              String objName = resultGetObjects.getStringValue("Objects.Name");
                              String status = resultGetObjects .getStringValue("Objects.Object Status.Status");
                              System.out.println("" + objName + " = " + status);
                              if (resourceObjName.equalsIgnoreCase(objName) && "Provisioned".equalsIgnoreCase(status)) {
                                   System.out.println("Provisioned objects " + objName + " = " + status);
                                                       }
                         }
          HTH