Skip Headers
Oracle® Fusion Middleware Developer's Guide for Oracle IRM Server
11g Release 1 (11.1.1)

Part Number E12326-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to current chapter
Up
Go to next page
Next
View PDF

5.2 Obtaining User and Group Names

The IRM web services typically returns user and group GUID values rather than user and group names. Rather than having to perform direct lookups of user and group names against the identity store, the Oracle IRM web services includes a user and group lookup mechanism. The web service method takes a list of GUID values (in the form of AccountRef types) and returns the user or group name. The following code example shows the domain administrator user names being looked up with the listAccountDetails web service operation.

DomainOperations domainOperations = new DomainOperationsService().getDomainOperations();
 
AccountRef[] accounts = domainOperations.listDomainAdministrators(domainReference);
 
Account[] results = domainOperations.listAccountDetails(accounts);
 
for(Account account : results)
{
    System.out.println(account.getName() + " : " + account.getType());
}

To call this method the authenticated user must have the domain administrator, domain manager, inspector, or context manager roles in any domain.