samxiao
samxiao

Reputation: 2667

How to create and add users to a group in Jenkins for authentication?

I choose to use "Jenkins's own user database" security realm for user login as I couldn't use LDAP in my company. And Google's OpenID has issue when you decided to change the hostname or port number to something else.

And I use "Project-based Matrix Authorization Strategy" schema for my security.

But I don't seem to able to create my own group, and add users to the group to manage the permission.

Upvotes: 70

Views: 159997

Answers (3)

Steve HHH
Steve HHH

Reputation: 13147

According to this posting by the lead Jenkins developer, Kohsuke Kawaguchi, in 2009, there is no group support for the built-in Jenkins user database. Group support is only usable when integrating Jenkins with LDAP or Active Directory. This appears to be the same in 2012.

However, as Vadim wrote in his answer, you don't need group support for the built-in Jenkins user database, thanks to the Role strategy plug-in.

Upvotes: 76

Vadim Kotov
Vadim Kotov

Reputation: 8284

You could use the Role-based Authorization Strategy plugin for that purpose.

It works like a charm, just set up some roles and assign them. Even on project-specific level.

Upvotes: 32

Tux
Tux

Reputation: 51

I installed the Role plugin under Jenkins-3.5, but it does not show the "Manage Roles" option under "Manage Jenkins", and when one follows the security install page from the wiki, all users are locked out instantly. I had to manually shutdown Jenkins on the server, restore the correct configuration settings (/me is happy to do proper backups) and restart Jenkins.

I didn't have high hopes, as that plugin was last updated in 2011

Upvotes: 5

Related Questions