Is there existing plugin to add multiple user?

228 views
Skip to first unread message

Mahlet Zemedie

unread,
Apr 5, 2020, 4:09:23 PM4/5/20
to jenkin...@googlegroups.com

Hi, 

We are working on a class project. We want to build a plugin to add multiple users and assign a role for each from a CSV file. Before we start from scratch, is there any existing plugin that can be used to add multiple users? 

Also, any suggestion that can be a good resource on how to build a plugin? I am able to add multiple users from a CSV file to Jenkins from Eclipse but I have no clue how to build a plugin. Any suggestions will be appreciated. 

Thank you. 
Regards 

Mark Waite

unread,
Apr 5, 2020, 4:29:40 PM4/5/20
to jenkinsci-dev
If the goal is to create multiple users, you might consider writing your user creation in the Jenkins groovy script console.  It allows you to perform Jenkins administrative operations from Groovy code that is executed in the Jenkins Java process.

There is also a stackoverflow article that provides an example to create a user with Groovy.  See https://stackoverflow.com/questions/17716242/creating-user-in-jenkins-via-api

There are other online resources that can guide you as well, like https://gist.github.com/hayderimran7/50cb1244cc1e856873a4

--
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-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CADQ9Bc8ToNWy76Ni3M51YkEmdMwuXzfVGntTivzB4CqKub4ceA%40mail.gmail.com.

Gavin Mogan

unread,
Apr 5, 2020, 5:18:49 PM4/5/20
to jenkin...@googlegroups.com
I would also recommend the jenkins-users mailing list, as this is for developing jenkins and jenkins plugins, not using jenkins.

Reply all
Reply to author
Forward
0 new messages