Fetching MSExchange OUs from AD in IIQ

Hi All,

I am working on a requirement to pull MSExchange OUs from Active Directory into SailPoint IdentityIQ (IIQ).

Previously, a customization rule was in place that ignored these OUs. I have modified the rule to read them instead, but even after running the aggregation, the accounts from these OUs are still not appearing in IIQ.
previous code

import sailpoint.object.ResourceObject;
dn = object.getStringAttribute(“distinguishedName”);

if (dn.toLowerCase().contains(“ou=msexchange”)) return null;

//if (dn.toLowerCase().contains(“ou=msexchange mail users”)) return null;

Modified/Current Code

import sailpoint.object.ResourceObject;
dn = object.getStringAttribute(“distinguishedName”);

//if (dn.toLowerCase().contains(“ou=msexchange”)) return null;

if (dn.toLowerCase().contains(“ou=msexchange mail users”)) return object;

Could you please review the change I made and let me know if it’s correct? Or is there anything else I need to modify?

Thanks!