Manager Correlation Rule

Hello everyone,

I need your help to understand why the rule didn’t work. I confess that this is the first time I’ve created this rule and I have no knowledge of how it works.

The idea is that if the SAP SuccessFactors “ManagerID” attribute is blank, the manager correlation should be performed based on an “AdministrativeEmail” attribute that is found in the source JSON in the “connectorAttributes” tab.

However, after aggregating SAPSF, it didn’t happen.


Hi @originalmths ,

Can you put loggers to check what does connectorAttributes , administrativeEmail and managerID values hold?

Also, another thing you can try is:

  1. Get AdministrativeEmail directly at line 17. You can remove line 15 if you use below:
    String administrativeEmail = application.getAttributeValue("connectorAttributes.AdministrativeEmail");

  2. If ManagerID is empty you might hit NPE at line 20. So you will have to put Null safe check at line 20 and 21. You can replace them with

String managerID = null != link.getAttribute("ManagerID") ? String.valueOf(link.getAttribute("ManagerID")) : ""

HTH

The logs don’t appear in the VA, right? Only in the SailPoint cloud

Hi @originalmths ,

Yes, these logs are visible to SailPoint support team, you can open a support ticket to get the logs

Hey ,

is the Administrative email on the account the manager email?
If is not you need to grab the manager ID find the proper account, grab the manager email and them return it. Simple as that. Thers no need to grab appliaction or connector attributes or anything. unless i missed the requirement.

Best!

I think the return should be of Map datatype in the else part. Have you tried that?

2 Likes

The method String.valueOf() is returning NullPointerException. I made the adjustment and requested the rule update.

Matheus, consegue me responder no Dm?

Att,

1 Like

The NullPointer issue has been resolved, however, SAPSF identities that have the “ManagerID” attribute blank remain without a manager.

Hi @originalmths ,

Just to check whether your tenant includes any identity with email as administrativeEmail?

Also, another thing that could be happening is your code is not entering the if, are you able to add loggers within the if and else statement.

Thanks,
Shailee

Hi Shailee,

Yes, the email is correct. And there is an identity with the “administrative email”.

I requested the rule logs from support. I’m waiting for them to send them.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.