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

SailPoint Certified IdentityIQ Engineer IdentityIQ-Engineer Question # 77 Topic 8 Discussion

SailPoint Certified IdentityIQ Engineer IdentityIQ-Engineer Question # 77 Topic 8 Discussion

IdentityIQ-Engineer Exam Topic 8 Question 77 Discussion:
Question #: 77
Topic #: 8

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.Identity;

import sailpoint.object.Link;

import sailpoint.tools.GeneralException;

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

IdentityService service = new IdentityService(context);

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

Link link = service.getLink(identity, " MagicBox " );

while (link != null) {

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.