I need to generate value of an attribute of AD on the basis of an account attribute of other application. I tried using idn rule library methods in my AttributeGenerator rule but I keep getting null. Here is the code I am running:
Account appAAccount = idn.getAccountByNativeIdentity(“AppA”, sAMAccountName);
As per logs, sAMAccountName is fine. But Account comes as null. I also tried getRawAccountAttribute() method and it also return null.
I am not sure what I am doing wrong. Has anybody ever used these methods? Any pointers will be highly appreciated.
Have you checked if sAMAccountName attribute is configured as Account ID? By defaut distinguisedName attribute is the nativeIdentity in Active Directory connector
If it is not possible retrieve account using the method mentioned before, you can try the following method: