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
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
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
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
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
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