Groovy Script OIM12 Trying to Update user attributes
HI
We are on OIm12 and using a DBAT Connector am trying to update user attributes.
I have this code which is not working.It is not even creating userIntf instance
tcUserOperationsIntf userIntf = ((tcLookupOperationsIntf)(tcUtilityFactory.getLocalUtility(XLDatabase.getInstance().getDataBase(),"Thor.API.Operations.tcUserOperationsIntf")));
//Update Flag
System.out.println("DEBUG :comparing Flags");
def userAttrs = userIntf .getUserAttributes(usrKey);
System.out.println("Done 1");
if ("Active Flag".equals(flag)) {
userAttrs.put("Active_Flag", "Y");
userIntf.setUserAttributes(usrKey, userAttrs);
System.out.println("Updated flag to Y");
}