OIM Change Password API

package com.massiveGaze.password;
import oracle.iam.identity.usermgmt.api.UserManager;

import com.massiveGaze.connection.Platform;
public class Changepassword{
 

  @SuppressWarnings("deprecation")
public static void main(String[] args) throws Exception {
       UserManager userManager = (UserManager)Platform.getService(UserManager.class);
      try {
        System.out.println("Changing the password to blank value");
      userManager.changePassword("TUSER4", "Welcome1".toCharArray(), true);
      //  userManager.changePassword("TESTUSER1", pwd.toCharArray(), true);
        System.out.println("Changing the password done...");
      } catch (Exception e) {
        e.printStackTrace();
        throw e;
      }
      System.out.println("Done");
    
  }
}

No comments:

Post a Comment

About OIM

Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...

Popular Posts