Summer Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ac4s65

The engineer uses the sailpoint.

The engineer uses the sailpoint.api.IdentityService in a BeanShell method to look up and return all account names for an identity on the application ' MagicBox ' . Is this a correct implementation?

Proposed Solution:

import sailpoint.api.IdentityService;

import sailpoint.api.SailPointContext;

import sailpoint.object.Application;

import sailpoint.object.Identity;

import sailpoint.object.Link;

import sailpoint.tools.GeneralException;

public List getAccountNames(SailPointContext context, Identity identity) throws GeneralException {

Application application = context.getObjectByName(Application.class, " MagicBox " );

IdentityService service = new IdentityService(context);

List < String > accountNames = new ArrayList < String > ();

List < Link > links = service.getLinks(identity, application);

if (links != null) {

for (Link link : links) {

accountNames.add(link.getNativeIdentity());

}

}

return accountNames;

}

A.

Yes

B.

No

IdentityIQ-Engineer PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now IdentityIQ-Engineer pdf
Get 65% Discount on All Products, Use Coupon: "ac4s65"