Manager Correlation Rule

Hey all I just uploaded a manager correlation rule. its my first one. I don’t think it works. I think it might be a coding error on my part. ES Uploaded rule and I assigned it to our Seczetta source in Sandbox under managerCorrelationRule. Currently no managers are assigned so I wrote this rule to correlate managers. Currently we are pulling in ‘Managers’ in format: Last, First (email) - I wrote my code to attempt to look at that ‘Managers’ attribute and parse out the email and assign that user (who’s email it is) as their manager. Here is my code:
Map returnMap = new HashMap();
String supervisor = link.getAttribute(“Managers”);
int firstP = supervisor.indexOf(“(”);
String managerEmail= supervisor.substring(firstP+1, supervisor.length()-1);
returnMap.put( “identityAttributeName”, “manager”);
returnMap.put( “identityAttributeValue”, managerEmail );
return returnMap;

looking back over documentation I think it might be coded like this (Let me know if this is correct)
Map returnMap = new HashMap();
String supervisor = managerAttributeValue();
int firstP = supervisor.indexOf(“(”);
String managerEmail= supervisor.substring(firstP+1, supervisor.length()-1);
returnMap.put( “identityAttributeName”, “manager”);
returnMap.put( “identityAttributeValue”, managerEmail );
return returnMap;

pseudo code:
Look at ‘Managers’ attribute
Substring to grab email (email)
put attribute in “manager” on Identity Profile & assign user a manager

This code looks good, except one mistake

Use email as identity attribute name instead of manager

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