Identity Management (MOSC)

MOSC Banner

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");

               }

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center