Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

SailPoint Certified IdentityIQ Engineer IdentityIQ-Engineer Question # 50 Topic 6 Discussion

SailPoint Certified IdentityIQ Engineer IdentityIQ-Engineer Question # 50 Topic 6 Discussion

IdentityIQ-Engineer Exam Topic 6 Question 50 Discussion:
Question #: 50
Topic #: 6

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


Get Premium IdentityIQ-Engineer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.