Skip to main content

Command Palette

Search for a command to run...

๐Ÿ‘ค๐Ÿ‘ฅ๐Ÿ”‘ User Creation & Role-Based Access Control ๐Ÿš€๐Ÿ”’

Published
โ€ข2 min read

Login to Jenkins with admin user

click on Manage Jenkins after that click on users

click on Create a User and fill in the details

So we have created one more user

you can log in with another user also

here I have all the access as admin have so we need to restrict some permission

So we need to install plugins for it

we have to click on Available plugins and search for Role-based Authorization Strategy

click on Install without restart Then it will show like this

Then click on manage Jenkins after that click on Security

choose Role-Based Strategy and click on save

The go back to manage Jenkins you will see one new option

when you click on the manage and Assign Roles you will see like this

click on Role to Add for example write developer as the role you will see one new role

Then Go to Assign Roles

you will see

Click on add user and one pop will appear you have to put another username that you have created at starting

Here you will see another Group as a developer

Then click Ram as a developer and save it.

here you will see that Ram had no permission to do any activity because we have not given any permission for it.

Permissions are the individual actions that users or roles can perform within Jenkins. These actions can range from basic read-only access to more powerful capabilities like creating, configuring, and deleting jobs, managing plugins, and more.

Some commonly used permissions in Jenkins include:

  • Read: Allows users to view information, including job configurations and build results.

  • Build: Permits users to manually trigger builds of specific jobs.

  • Configure: Grants users the ability to modify job configurations.

  • Delete: Allows users to delete jobs.

  • Manage Jenkins: Provides access to manage global Jenkins configurations and settings.

  • Overall: Covers broad permissions affecting the entire Jenkins instance, such as accessing the system log or managing user accounts.

I have made some changes in a manage role

After that, we have access to a few things ever we have given to this user

More from this blog

DevOps

9 posts