Hi

I have a PRD where I want to check if the initiator is a member of a
certain group.
Based on this condition being "true", the workflow should take a certain
path.
Will the following code work in the condition expression? If not,
what's the best way to sort this one out?
------------
(CheckHRmembership(initiator) == "x" ) ? true:false;

function CheckHRmembership(userDN)
{
var grp = IDVault.get(userDN,'user','group');
var isMember;
var grpIterator = grp.iterator();

while(grpIterator.hasNext()){
var currentNode = grpIterator.next();
if (currentNode == "CN=XXX_IDM_HR,OU=groups,O=data")
{isMember="x";
break ;}
else
continue;
}
return isMember;
}


--
rohit_everett
------------------------------------------------------------------------
rohit_everett's Profile: https://forums.netiq.com/member.php?userid=4650
View this thread: https://forums.netiq.com/showthread.php?t=48837