Hi Naga,
If I understood it correctly you can look at the below javadoc:
- http://javadoc.jenkins-ci.org/?hudson/model/User.html
For instance, if you run the below groovy script it will show the whole
list of users, then you can filter that list to look for any specific
access control setup
with
http://javadoc.jenkins-ci.org/hudson/model/User.html#checkPermission(hudson.security.Permission)
import hudson.model.User
User.getAll().each { user ->
println user
}
You can also run https://<yourjenkins>/asynchPeople/api/xml?depth=1 and
filter those users with project
I hope it helps
Cheers
On Wednesday, 11 November 2015 00:06:17 UTC+1, Naga Rakesh wrote:
>
> Hello,
>
> Is there a REST call/ API for retrieving users list who have access to a
> particular jenkins server? I have searched for a while but couldn't find
> any.
>
> In short i want to retrieve list of users found at
> https://<yourjenkins>/configureSecurity/ which shows usernames and their
> access control, I am aware of the people section at
> https://<jenkinsurl>/people/api/json but this generates users list even if
> they don't have access to the jenkins server.
>
> Thanks,
> Rakesh
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/c18633c6-48e9-4b10-b0e7-412b1877ef1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.