Hi guys,
I’m using an ID as the Account ID in a web services connector, but this ID doesn’t support the “Get Single User” endpoint.
I need to modify the nativeIdentity attribute in the Single Account Aggregation endpoint to use a different attribute.
I’ve written a Before Operation Rule to achieve this, but it’s not working as expected.
Could someone help me troubleshoot this?
import sailpoint.object.Attributes;
log.error("=== WS Before Operation Start ===");
if ("GetObject".equalsIgnoreCase(requestEndPoint.getOperationType())) {
String userNTID = request.getAttribute("identityName");
log.error("=== WS Before Operation idName" + identityName);
if (userNTID != null) {
String endpoint = application.getAttribute("baseUrl") + "/users/" + userNTID;
log.error("=== WS Before Operation ep" + endpoint);
request.setAttribute("endpoint", endpoint);
log.error("Updated endpoint: " + endpoint);
} else {
log.error("=== WS Before Operation userNTID is null!");
}
}
log.error("=== WS Before Operation End ===");
