A contractor needs to trigger and view builds for one project for three months. How do you grant access?
BeginnerScenarioCredentials & security
Answer
Situation read → Least privilege with an expiry.
What I'd do →
- Add the contractor to an IdP group with an expiry date (e.g.
ext-shack-builders). - Grant that group
Overall/Readand on the project folderJob/Read,Job/Build,Job/Cancelonly. - No
Job/Configure,Run/Replayor credential permissions. - Review access at expiry.
Why → Group-based grants in the IdP give central revocation and audit.
Interview tip → Avoid local Jenkins users for humans.
More on Credentials & security
What credential types does Jenkins support out of the box?BeginnerWhat is the difference between Global and System credential scope?IntermediateHow do folder-scoped credentials help multi-team controllers?IntermediateHow does Jenkins mask secrets in logs and what are its limits?AdvancedWhat authorization strategies are available?IntermediateWhat are the key permissions to understand in matrix auth?Intermediate