Project-based Matrix Authorization Strategy is an extension to Matrix-based security. It allows an access control list matrix to be defined for each project. This feature is very useful where we want to give access to specific jobs to specific users, so the security of Jenkins is not compromised.
- Go to Manage
Jenkins
|Global Security Configuration
. In theAuthorization
section, selectProject-based Matrix Authorization Strategy
. - Give admin all rights and
Save
:
- Go to the incognito window where we logged in using the credentials for Shreyansh.
- Refresh the page and you will get
Access Denied
. The reason is we haven't given any rights toShreyansh
inProject-based Matrix Authorization Strategy
:
- We need to provide overall read rights so
Shreyansh
can access the Jenkins dashboard:
- Now, go to the individual build job as an admin and select
Enable project-based security
in the job configuration page. - Add
Sreyansh
as aUser
and click onSave
:
- Now, go to the incognito window where...