It's all about IAM

Manage Direct Role Members Through Membership Rules

Problem Summary:  
Managing the role membership of Direct Members through membership rules

Problem Description:

We have a role with some membership rule but we have assigned this role to few users through API as well. Tomorrow if we change the existing membership rule then these direct users won't come out of the role automatically based on the new membership rule. Someone has to remove these users from role manually or programmatically if we change the membership rule.

Solution:

Update USG set USG_PROV_MECHANISM ='Rule-Based Role-Assignment', USG_RULE_BASED=1, USG_PROV_BY=ROLE_KEYwhere UGP_KEY=ROLE_KEY and USG_RULE_BASED is null;

NOTE: ROLE_KEY is the key of the role/group.

After running this query, now if you modify the membership rule then these users will come out of the role automatically. No need to remove the role from Direct Members manually or through programmatically. They will taken care by Oracle Identity Manager..





Upload Jar Through Eclipse JDeveloper

Upload Jar Through Eclipse/Jdeveloper:

No need to run the UploadJar Utility through command line



public void uploadJar(PlatformUtilsService platformUtilsService) throws PlatformServiceException{
        String METHODNAME = "uploadJar() :: ";
        System.out.println( METHODNAME +"ENTERING");
        JarElement jarElement = new JarElement();
        jarElement.setName("CustomScheduleTasks.jar");
        jarElement.setPath("/tmp/CustomScheduleTasks.jar");
        jarElement.setType("ScheduleTask");
       
        Set jarElementSet = new HashSet();
        jarElementSet.add(jarElement);
       
        platformUtilsService.uploadJars(jarElementSet );
        System.out.println(METHODNAME + "EXITING" );
    }

    


Note: /tmp/ is the directory on OIM Server with read permissions on the file