This is the 15th day of my participation in the Gwen Challenge in November. Check out the details: The last Gwen Challenge in 2021″

❤️ About the author: Hello everyone, I am Xiao Xu Zhu. Java field quality creator 🏆, CSDN blog expert certification 🏆, Huawei Cloud enjoy expert certification 🏆

❤️ technology live, the appreciation

❤️ like 👍 collect ⭐ look again, form a habit

Role-based Authorization Strategy plug-in installation

The installation

1. Select Manage Jekins -> Click Manage Plugins

2. Search plug-in role-based Authorization Strategy

Choose Direct installation

The picture is after installation

Role-based Authorization Strategy configuration

Global Security Configuration

When the plug-in is installed, the authorization policy will have a role-based Strategy option. Select this option and save it

Manage and assign roles

Management role

Click on the manage roles

Set the global role (the global role can set the Jenkins system and operate the project) admin: It can operate the whole Jenkins

Ops: you can manage all jobs. Other: You can only read jobs

Create a user

Manage users on the system management page

Assign roles

On the Manage and Assign Roles page, click Assign Roles

Assigning global Roles

The effect

Administrators can see all system management rights and all projects when they enter the system

The Deployment user logs in to the system and has job,run, and View permissions assigned to the OPS role