Hi,
I have requirement where i need to have manager,owner serial approval for AD Entitlement and only Owner for serviceNow entitlement.Our default approvalscheme is owner.Is there anyway to hadle this scenario ?
Hi,
I have requirement where i need to have manager,owner serial approval for AD Entitlement and only Owner for serviceNow entitlement.Our default approvalscheme is owner.Is there anyway to hadle this scenario ?
Hi @srikantdeloitte,
This can be achived by ApprovalAssignment rule.
Hi Arun,
i tried with below code but not able to achieve.Can you please help me:
List newApprovals = new ArrayList();
if (approvals != null){
for ( Approval approval : approvals ){
if ( approval != null ) {
log.error("Expanded old approval : "+approval.toXml());
List childApprovals = approval.getChildren();
if ( childApprovals != null && !childApprovals.isEmpty()){
for ( Approval child : childApprovals ){
log.error("1st child get");
List<ApprovalItem>itemList=approvalSet.getItems();
for(ApprovalItem item :itemList){
if(item.getApplicationName().equalsIgnoreCase("ServeMe")){
item.setOwner(manager+","+"26935");
child.setOwner(manager+","+"26935");
newApprovals.add(child);
log.error("manager and owner has been set");
}else{
item.setOwner("26935");
child.setOwner("26935");
newApprovals.add(child);
log.error(" owner has been set");
}
}
}
}else{
approval.setOwner("26935");
newApprovals.add(approval);
log.error("owner has been set in else");
}
}
}
}
if ( newApprovals != null && newApprovals.size() > 0 ){
log.error("new Approvals "+newApprovals);
for ( Approval approval : newApprovals ) {
log.error("Expanded new approval : "+approval.toXml());
}
log.error(“approvalSet:”+approvalSet.toXml());
return newApprovals;
}
return approvals;
When you attempted the scenario with this rule, could you describe the behavior?
@sreeram : When I tried with above code ,i was not able to achieve to get the right owner incase when I am requesting with two different application entitlement having two different owners. I know I have hardcoded the owner value but incase also I dynamically set the owner then also it was not achievable.
@srikantdeloitte You can use one with example rule as this rule is not complete rule.
u can refer this link or many other.
https://community.sailpoint.com/t5/IdentityIQ-Forum/ApprovalAssignment-Rule/m-p/235423
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.