user creation

28 views
Skip to first unread message

Yoyo

unread,
Mar 3, 2020, 9:11:08 PM3/3/20
to Jenkins Developers
If I need to create 100 users, do I have to do it manually? Is there any plugin to create users in a batch from CSV files or other formats? 

Slide

unread,
Mar 3, 2020, 10:33:03 PM3/3/20
to jenkin...@googlegroups.com
You could try using the script console. After enabling security, you could possibly do something like this:

// get users into a map of username -> password
def users = ...
def realm = Jenkins.instance.securityRealm
users.each -> { username, password
    realm.createAccount(username,password)
}
Jenkins.instance.save()
  
I have not tried this myself, but it might get you started.

On Tue, Mar 3, 2020 at 7:11 PM Yoyo <mahlet...@gmail.com> wrote:
If I need to create 100 users, do I have to do it manually? Is there any plugin to create users in a batch from CSV files or other formats? 

--
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/79b7aab7-0651-40b4-97a5-cf959c3b2215%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages