package com.NeedEvaluate; import java.util.List; import com.massiveGaze.connection.Platform; import oracle.iam.platform.entitymgr.NoSuchEntityException; import oracle.iam.platform.entitymgr.exception.AccessDeniedException; import oracle.iam.platform.entitymgr.exception.EntityAlreadyExistsException; import oracle.iam.platform.entitymgr.exception.EntityCreateException; import oracle.iam.platform.entitymgr.exception.EntitySearchException; import oracle.iam.platform.entitymgr.exception.ValidationFailedException; import oracle.iam.platform.entitymgr.vo.AbstractEntityTypeManagerResult; import oracle.iam.platform.entitymgr.vo.EntityConstants; import oracle.iam.platform.entitymgr.vo.SearchCriteria; import oracle.iam.policyengine.api.PolicyTypeManager; import oracle.iam.policyengine.api.RuleManager; import oracle.iam.policyengine.vo.Condition; import oracle.iam.policyengine.vo.PolicyType; import oracle.iam.policyengine.vo.Rule; public class CreateIDARule { protected RuleManager ruleManager; public static void main(String[] args) throws ValidationFailedException, EntityAlreadyExistsException, EntityCreateException, AccessDeniedException, EntitySearchException, NoSuchEntityException { //API to retrieve policy Type Manager PolicyTypeManager ptm = Platform.getService(PolicyTypeManager.class); SearchCriteria sc1 = new SearchCriteria(EntityConstants.NAME, "Identity Audit", SearchCriteria.Operator.EQUAL); List<PolicyType> ptList = ptm.search(sc1, null, null); PolicyType pt = ptList.get(0); RuleManager ruleManager = Platform.getService(RuleManager.class); String ruleName = "TestRule_3"; String lhs ="appType[ABC].appInstance[ABC].account[*]"; String rhs ="CN=ABC,DC=abc,DC=com"; Rule ruleCreate = new Rule(); Condition trivialCondition = new Condition(lhs, rhs, Condition.Operator.ENDS_WITH); ruleCreate.setAttribute(Rule.Attribute.NAME.attributeName,ruleName); ruleCreate.setAttribute(Rule.Attribute.DESCRIPTION.attributeName," API Rule Creation "+ruleName); ruleCreate.setAttribute(Rule.Attribute.TYPE_ID.attributeName,(String)pt.getEntityId()); ruleCreate.setAttribute(Rule.Attribute.CONDITION.attributeName,trivialCondition); AbstractEntityTypeManagerResult result = ruleManager.create(ruleCreate); System.out.println(" ID -> "+result.getEntityId()); } }
Oracle Identity Manager (OIM R2PS2/PS3/12C) is a highly flexible and scalable enterprise identity administration system that provides operational and business efficiency by providing centralized administration & complete automation of identity and user provisioning events across enterprise as well as extranet applications.
OIM API to Create IDA Rule
Subscribe to:
Posts (Atom)
About OIM
Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...
Popular Posts
-
OIM API's Sample Code : Videos: Massive Gaze Videos Connection Related API's : OIM DB Connection/ Data Source connection ...
-
Videos: Massive Gaze Videos 1. Basic OIM Information 2. MDS Export/Import 3. Steps For R2PS2 / R2PS3 Custom Pre-processor Ev...
-
Videos: Massive Gaze Videos 1. Query to get OIM Provsioned/provisioning Account details 2. Query to get usr keys For Rejected / ...
minatric-re Jason Harris https://wakelet.com/wake/t3xAX3wDCdYi4dK-nnOi6
ReplyDeletemendelevo
demptiWcuho1994 Michael Adelaja click
ReplyDeletelink
https://colab.research.google.com/drive/17Lj1kkwx6wc9nflIROjVF4YaAxFM-EP9
link
taiclubafich
Varneolau_bu Leslie Holloway FonePaw
ReplyDeleteInternet Download Manager
ScreenHunter Pro
afininhar
NgraphleYthritnu_Billings Donald Robinson Software
ReplyDeleteBest
uneninel