OIM API To Get UDF Fields



/* API to Get USER Fields */

package com.udf;

import java.util.Iterator;
import java.util.Map;

import com.connection.Platform;

import oracle.iam.configservice.api.ConfigManager;
import oracle.iam.configservice.api.Constants.Entity;
import oracle.iam.configservice.vo.AttributeDefinition;

public class GetUDFields {
  public static void main(String[] args) throws Exception {
         
         ConfigManager cfgMgr = Platform.getService(ConfigManager.class);
         Map<String, AttributeDefinition> attrMap = cfgMgr.getAttributes(Entity.USER);

         Iterator<String> it = attrMap.keySet().iterator();
         while (it.hasNext()) {
             String attr = it.next();
             AttributeDefinition attrDef = attrMap.get(attr);
             System.out.println(attr + " ==> " + attrDef);
         }

     }

 }

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