Interview Prep/Jenkins/Credentials, permissions & script approval

A job using a credential works when triggered by an admin but fails with `CredentialsNotFound`-style errors when triggered by an upstream job or a normal user

AdvancedTroubleshootingCredentials, permissions & script approval
Answer

Likely causes → Authorize Project plugin runs builds as the triggering user, who lacks Credentials/UseItem on that credential; or the credential is user-scoped (stored in the admin's personal store).

Diagnose → Job's Authorization setting and the credential's store (user vs folder).

Fix → Move the credential to the folder store; grant Credentials/UseItem to the group that runs the job, or configure the job to run as a specific service identity.

Prevent → Never use personal credential stores for shared jobs.

All Jenkins questions Roadmap: Jenkins

More on Credentials, permissions & script approval