Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java API to retrieve Organization Administrators in OIM 11g R2

MounikaSep 5 2014 — edited Sep 15 2014

Hello there,

I am working with OIM 11g R2 PS2.

I am trying to build a Java class to get the Organization Administrators based on the Organization Name.

From the Oracle doc specific to 11g R1: it can be achieved using the following code snippet:(Using APIs)

=====================================================================

/** Retrieves the administrators of an organization based on the organization

name. */

public List getAdministratorsOfOrganization(String psOrganizationName){

Vector mvOrganizations=new Vector();

tcOrganizationOperationsIntf moOrganizationUtility =

clientPlatform.getService("Thor.API.Operations.tcO

rganizationOperationsIntf");

Hashtable mhSearchCriteria = new Hashtable();

mhSearchCriteria.put("Organizations.Organization Name", psOrganizationName);

tcResultSet moResultSet =

moOrganizationUtility.findOrganizations(mhSearchCriteria);

tcResultSet moAdmins;

for (int i=0; i<moResultSet.getRowCount(); i++){

moResultSet.goToRow(i);

moAdmins=moOrganizationUtility.getAdministrators(moResultSet.getLongValue("Org

anizations.Key"));

mvOrganizations.add(moAdmins.getStringValue("Groups.Group Name"));

}

}

=========================================================

But is a legacy API which has been re-written as" oracle.iam.identity.orgmgmt.api. OrganizationManager"

When I am checking the Java API ref of OIM 11g R2 from Oracle Fusion Middleware Java API Reference for Oracle Identity Manager I dont find the methods highlighted in the above code snippet in the new API class,

Could somebody help me in achieving this.

Regards,

Mounika

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2014
Added on Sep 5 2014
4 comments
233 views