I want to delete member from jenkins project using CURL or API call, so that I can replicate the same using code. Like we can delete a Job from jenkins using a POST request like below
http://<jenkins URL>/job/<job name>/doDelete
Similarly do we have a CURL or API to delete a member from a particular Jenkin Project?
Similarly do we have a CURL or API to delete a member from a particular Jenkin Project?
Not to my knowledge.
That would be done via the job update API. If you look at the config.xml of a Folder for example, you would see something like this (irrelevant parts omitted):
You’d need a HTML parser, it would have to have the knowledge of the structure (which hopefully won’t change too much between Jenkins versions), and it would have to pull out the specific user (or be able to grant/alter/revoke the required permissions), then post the modified config.xml back to Jenkins.
I think a scripted client sitting inside or on top of jenkins-rest would be a good place to implement this feature. Try to start a conversation about it by opening an issue in jenkins-rest.