I've been trying to evaluate a list of possible users to participate in a task through the following code:
var key = new Array();
var value = new Array();
key[0] = "DisplayName"; value[0] = "User1";
key[1] = "DisplayName"; value[1] = "User2";
Role.candidateList = Directory.findAllUsers(key,value);
This script is run on Role Builder, under the GetCandidateList event for the role GenericUser.
Although nothing seems to be wrong in the script above, the WorkItem stalls and the error message states that "You must assign the current work item to an user".
Has anyone seen this before?
Thanks.