You are viewing limited content. For full access, please sign in.

Question

Question

Team filter to exclude a user from role members.

asked on May 22, 2017

I see in the Laserfiche help files I can get the member difference between two roles. What if I want to get all of the role members excluding one member who's AD username is in a field/variable. So if RoleA contains User1, User2 and User3 and I want to exclude User2. I am getting User2's domain name from a field/variable. Is this possible?

Here's the code I mentioned from the help files.

var analysts = team.findMembersByRole('Analyst');
var accountants = team.findMembersByRole('Accountant');
$result = $util.difference(analysts, accountants);

 

1 0

Answer

SELECTED ANSWER
replied on May 22, 2017

Yes it's possible.

Change the second line of code to:

var accountants = team.findTeamMembersByUserName($util.getValue('ExcludeField'));

where ExcludeField is the field variable name.

2 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.