Users & Roles
when you create a user in Jenkins, it can access almost everything. In this, you can create multiple users but can only assign the same global roles and privileges to them. This is not ideal, especially for large organizations.
Roles
A role in Jenkins basically refers to a user that can has access to Jenkins. A user can be an administrator or any non-admin privileged entity.
A role can be assigned to a user to indicate the set of privileges assigned to that particular user. These privileges can be admin privileges or an admin user can then create many roles and add users to our Jenkins and allot a role specific to a particular user’s tasks.
To use the concept of roles in Jenkins, we need to install a plugin known as Role-based authorization strategy
Roles Types
Global roles such as admin, anonymous, job creator that allows setting permission like job, view, agent, run and SCM, etc.
Project roles that allow us to access particular projects with jobs and run permissions.
Agent roles that are used to set node related permissions.
Roles can be assigned to users and user groups with the help of this plugin.
Last updated