In the Authorization
section, we can configure matrix-based security so we can configure who can do what. We can configure the predefined roles available in Jenkins.
- Select
Matrix-based security
and type a name in the User/group to add box. Make sure that you give access to Admin before saving it, or the Jenkins account will be locked out:
- Type the name of our newly created user in the
User/group to add
text box, click onAdd
, and provide all the required rights. We can do the same things for different users. - Click on
Save
:
- To verify access has been granted, open a new incognito window in your browser and log in with the username and password of the newly created user:
- Verify that limited access is available to the new user, and that the
New Item
andManage Jenkins
links are not available:
- Now go to
Manage Jenkins
|Global Security Configuration
. AllowRead
rights in theJob
category for the userShreyansh
. - Click on
Save
:
- Go to the incognito window that we opened before and refresh...