Using matrix security and the following groovy lines I can generate a list
of Jenkins users sorted in alphabetical order
def computer =hudson.model.User
> allUsers= computer.getAll()
> sortedUsers= allUsers.sort{ a, b -> a.toString().compareToIgnoreCase
> b.toString() }
> return sortedUsers
Sorry, I don't know if this would work with LDAP, Active directory etc
On Wednesday, May 28, 2014 7:34:27 AM UTC-4, ninian_harvey wrote:
>
> Hi,
>
> I'm looking at one of the outstanding issues with JENKINS-7824, which is
> about enhancing the claim plugin so that you can assign a failed build or
> test to another user. To make this work nicely, you really want to
> present a list of users you could assign the failure to (rather than just
> allowing the entry of a user id and then failing if the id entered is not
> valid).
> I don't see any way of getting a descriptor for a class which could be
> used to populate a list of users though. Does anyone have any advice on how
> it could be achieved? (Indeed, is what we want even possible, in the cases
> where authentication is done via LDAP, Active Directory etc?)
> thanks for any help
> Ninian
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.