Configure Role Based User Access In Jenkins Server On Linux
Jenkins user permissions Linux on security purposes because if there are no roles defined, any user can run builds of other projects. you can install role-based authorization Jenkins plugins & defines user security based on Jenkins roles and responsibilities. Jenkins allows you to Configure Role-Based User authorization for security purposes.
Click on Manage Jenkins and install Role Base Authorization Strategy Plugins
After installation of Role-Based plugins, You need to go “Configure Global Security”
Select Authorization Method
Check Out: How To Solve Missing Jenkins Login Page
Click on Manage Jenkins -> Manage and Assign Roles
Click on Manage rules,
here you need to create a global role and I created Employees and click on add.
After this phase, you need to permit Employees according to your needs.
Now Come to Project roles, you have to create a project which will match the pattern.
Note: Job created Name Should be the same in Project roles.
I have created apple project roles and click on add.
Now Permit Project roles and user will be able to do only what permission are assigned to this project roles.
Apply and save.
Go back to Assign Roles,
Here you will add users in global roles and items roles.
Now test user will be able to see the apple project and test 1 will be the cisco project.
Now Create a job with apple and cisco project to check the configuration.
Click on New items and login with the user.
Check Out: How To Uninstall Skype From Ubuntu
In the same way, do this for the Cisco project.
You’re done. jenkins user permissions jenkins user permissions linux jenkins user permissions linux