-
Bug
-
Resolution: Fixed
-
Critical
-
None
I am using Project-based Matrix Authorization Strategy to manage user permission.
I have an account under group A. I give this group Overall/Read permission. When I call rest API with user API token Jenkins rejects the request and says no overall/read permission. If I add this user to the matrix and grant appropriate permission, it works.
It seems API authorization doesn't work with Group.
Please help me on this. THanks
- relates to
-
JENKINS-48423 Jenkins CLI SSH auth does not return GitHub authorities
-
- Open
-
- links to
danielbeck Thanks.
I tried the API in browser, I got more info than API request with API token.
<whoAmI _class="hudson.security.WhoAmI">
<anonymous>false</anonymous>
<authenticated>true</authenticated>
<authority>authenticated</authority>
<authority>SystemTeam</authority>
<authority>SystemTeam*Tools Team</authority>
<name>xxx</name>
<toString>
org.jenkinsci.plugins.GithubAuthenticationToken@19f2abfd: Username: yun-long-tang; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: authenticated, SystemTeam, SystemTeam*Tools Team
</toString>
</whoAmI>