I doubt this can be achieved by pure REST API calls.
Probably you need to write your own plugin that provides such a rest api
On 23.05.2020 13:37, varun vikas wrote:
Hi Markus,
My requirement is that, any user can login on portal and trigger
Jenkins build, but in background this request will be sent by a single
generic user.
So , I will block the build trigger by any user who does not have
Jenkins permission ., So that only those user can trigger builds who
have triggere access on Jenkins.
Actually I have credential of only one generic user but on portal any
user can trigger build, but I want to get it triggered by only those
users who have proper permission.
I have one link ,but read permission API is not given in this link.
https://support.cloudbees.com/hc/en-us/articles/115000078091-How-do-I-use-RBAC-REST-API-
Thanks & Regards,
Varun
On Sat, 23 May 2020, 16:57 Markus Winter, <m_win...@gmx.de
<mailto:m_win...@gmx.de>> wrote:
you just need the credential of the user with which you want to
trigger the request. not all users.
On 23.05.2020 13:11, varun vikas wrote:
Hi Mark,
Thanks for reply.
Actually I don't know the credential of all users.
I only know the credential of one generic user which will be used
to do rest API call.
Is it possible to get permission status of another user by making
rest call through a single generic user which credential is known
to me.
Thanks,
Varun
On Sat, 23 May 2020, 16:30 Markus Winter, <m_win...@gmx.de
<mailto:m_win...@gmx.de>> wrote:
Just try to do a HEAD request on the project with the users
credentials. If the user has access you should get a 200
return code.
On 22.05.2020 14:28, varun vikas wrote:
Hi,
I want to check , if user has access rights to trigger
Jenkins project before sending trigger request.
is there any Jenkins rest API available for above task.
I am creating a web portal and i have to use jenkins REST
API for above function.
Thanks,
Varun
--
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
jenkinsci-dev+unsubscr...@googlegroups.com
<mailto:jenkinsci-dev+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/e019fdb5-d474-4def-a2ac-9cf855f00de4%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-dev/e019fdb5-d474-4def-a2ac-9cf855f00de4%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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
jenkinsci-dev+unsubscr...@googlegroups.com
<mailto:jenkinsci-dev+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/1d2505c7-2937-ba4a-bb1f-bd3b6cf7dcba%40gmx.de
<https://groups.google.com/d/msgid/jenkinsci-dev/1d2505c7-2937-ba4a-bb1f-bd3b6cf7dcba%40gmx.de?utm_medium=email&utm_source=footer>.
--
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 jenkinsci-dev+unsubscr...@googlegroups.com
<mailto:jenkinsci-dev+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/CAKQUBE5rLxYQNOr4-ghfSFR9f6MrgW0MoTvnuFYxxQ0a6qFedg%40mail.gmail.com
<https://groups.google.com/d/msgid/jenkinsci-dev/CAKQUBE5rLxYQNOr4-ghfSFR9f6MrgW0MoTvnuFYxxQ0a6qFedg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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 jenkinsci-dev+unsubscr...@googlegroups.com
<mailto:jenkinsci-dev+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/cfdaa664-52cc-118e-f1c7-0b206ea5e720%40gmx.de
<https://groups.google.com/d/msgid/jenkinsci-dev/cfdaa664-52cc-118e-f1c7-0b206ea5e720%40gmx.de?utm_medium=email&utm_source=footer>.
--
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 jenkinsci-dev+unsubscr...@googlegroups.com
<mailto:jenkinsci-dev+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/CAKQUBE7YaJs-p7bC924OYHpskwTZrwi6tuwfMOaqw%2BV2Jo1ijQ%40mail.gmail.com
<https://groups.google.com/d/msgid/jenkinsci-dev/CAKQUBE7YaJs-p7bC924OYHpskwTZrwi6tuwfMOaqw%2BV2Jo1ijQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/975b9bcb-9404-d1fd-8867-c5f4d65eb8ed%40gmx.de.