'User is missing the Overall/Read permission' error with Jenkins GitHub OAuth Plugin

103,615

Solution 1

This is how I resolved the authentication problem:

  1. Edit config.xml file, e.g.

    sudo vi /var/lib/jenkins/config.xml
    
    1. Change useSecurity element's value to false, e.g.

      <useSecurity>false</useSecurity>
      
    2. Remove authorizationStrategy block

  2. Restart Jenkins: /etc/init.d/jenkins restart.

  3. Access Jenkins through URL as usual and reconfigure security again.

Solution 2

I had the same problem with "... is missing the Overall/Read permission" on Jenkins (1.651.2) with activated Credentials Plugin.

But it was my own failure: I only configured the user on project side (by credential plugin) but missed to configure the global security.

So I fixed it by selecting:

Jenkins -> Manage Jenkins -> Configure Global Security

And did setup missing global settings (or project matrix based one)

Solution 3

Have you followed this step, from the plugin page?

Control user authorization (i.e. who is allowed to see the jobs and build them) using the Github Commiter Authorization Strategy

Also, make sure you actually allow authenticated users to access Jenkins

  • Under Jenkins global configuration, under Authorization, add user/group called authenticated
  • Give that group Overall Read permission
  • The group should show up with a "group" icon (two users), as opposed to single user icon.

Solution 4

reset from <useSecurity>true</useSecurity> to <useSecurity>false</useSecurity> in config.xml and set the permission again.

Solution 5

Edit file /var/lib/jenkins/config.xml and add the following lines :

  <authorizationStrategy class="hudson.security.ProjectMatrixAuthorizationStrategy">
    <permission>hudson.model.Hudson.Read:john.smith</permission>
  </authorizationStrategy> 

Restart Jenkins

Share:
103,615
real_ate
Author by

real_ate

I have been working in an almost pure JavaScript environment since 2011, focusing on NodeJS backends and EmberJS for the frontend. My first Ember app went into production in December 2011 which was before Ember 1.0 was even released, so you could say that we have been doing Ember since the beginning. I'm a developer at https://simplabs.com and a member of the Ember Core Learning Team. I have a Computer Science degree and have always specialised in application architecture, knowing how to structure apps so that you can have the most performant and productive code base.

Updated on July 09, 2022

Comments

  • real_ate
    real_ate almost 2 years

    I'm using the github oauth plugin for our logins but for all of our users in the Organisation I get an error:

    Access Denied
    
    <user> is missing the Overall/Read permission
    

    I have tried everything I can possibly think of to try to make this work and I'm probably going to fallback to making everyone an admin user, which i would prefer not to do.

    Any advise would be appreciated.

  • real_ate
    real_ate about 10 years
    Yes i added our organisation, Blooie, to the list but the members of the organisation can't login. They all get the above error
  • Slav
    Slav about 10 years
    Did you setup authenticated group to have permissions at all? I've updated the answer
  • real_ate
    real_ate about 10 years
    Ok so now i'm really really confused... you ask if i followed the step from the plugin page and this is all that step says: cloudup.com/cfbsnzHGBxA . I'm using the github authorization strategy and my users are public members of our organisation. Now you're talking about "Global Configuration", I assume that you mean "Global Security Configuration" cloudup.com/cfFzfQ8bYol I've gone to the Authorization section in the Global Security Configuration and i don't see anything related to groups: cloudup.com/cdPRoZ0xqxT Am i missing something?
  • Jacob McKay
    Jacob McKay over 9 years
    Just like on the dancefloor, back that thang up: cp -R /var/lib/jenkins /var/lib/BACKUP-jenkins
  • Jonathan
    Jonathan almost 8 years
    I think this is simpler than removing entire blocks of XML
  • giorgiosironi
    giorgiosironi almost 8 years
    Note that the question is about how to make security work, not how to restart Jenkins without security to be able to access it.
  • Alexander Bird
    Alexander Bird almost 8 years
    I assume that the comments about 'authenticated' group are assuming that you are using "Project-based Matrix Authorization Strategy" -- which it sounds like you are not: i.imgsafe.org/218e656913.png
  • eugene
    eugene almost 8 years
    I had the problem in the question and fixed it in the similar way as this answer mentions. However, I did that editing the config directly: sed -i '' -e 's/:Admin/:admin/g' Home/config.xml. a little bit more information is here: egeek.me/2015/03/07/…
  • Will
    Will over 7 years
    My user was getting an error of [email protected] is missing the Overall/Read permission. I had that user in my jenkins matrix as [email protected]. As soon as I added [email protected] to the Jenkins matrix, that user could login ok.
  • Yaron
    Yaron over 6 years
    I can't access that, the system is locked and all I can see is this error message.
  • Dezzamondo
    Dezzamondo over 6 years
    Nice and succinct. Saves faffing about with turning security off and on again, etc.
  • derHugo
    derHugo over 6 years
    True but, thanks so much I thought I had lost my jenkins installation after locking the administrator out by accident
  • gubs
    gubs about 5 years
    Thank you. Your solution was awesome when i added new user. I faced the same error and resolved.
  • Ashish Karpe
    Ashish Karpe over 4 years
    If we do this all current users will lose their user name and password right and have to create a new password all user? what if I just have reset permission of one user only?
  • Cameron Hudson
    Cameron Hudson over 4 years
    Nice try, Nigerian Prince.
  • Gregory Danenberg
    Gregory Danenberg over 3 years
    We just experienced similar issue. It happened after adding a new user to role. To resolve it I changed useSecurity to false, restarted the Jenkins, then stopped Jenkins again and reverted the parameter to be true... somehow it solved the issue. Would happy to know if someone knows RC for this problem and how to prevent in the future.
  • Gregory Danenberg
    Gregory Danenberg over 3 years
    I googled a bit more and found why is happened on our machine. Similar case as here stackoverflow.com/a/51790352/1085076
  • Krishna
    Krishna about 3 years
    Yes, this is the right answer without compromising the Security. Thanks