| || |
Remove users from a User List object
I'm trying to find a way to make user list objects (specifically "assigned to" and "reported by" in the Defects module) show only the members of a particular user group. I already have a script that can find a user's group memberships given a username, but I have been unable to find a way to iterate through a user list's values and remove the ones I don't want. Is this sort of thing possible? I haven't been able to find any useful documentation on user list objects and their members functions (if they have any). Thanks.
Re: Remove users from a User List object
Not possible for fields that are designed to use the User List. The only option is to create a field that uses a lookup list, and then dynamically populate the lookup list with the names of the users you want.
Of course, you loose any of the special functionality normally associated with a User list like auto e-mailing.
I don't see why they make this field so restrictive. At the very least, HP should allow you to configure which user groups to show in the list.