-
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
[JENKINS-47113] Accessing Jenkins using API token does not populate group memberships
Component/s | Original: matrix-project-plugin [ 18765 ] |
Component/s | New: github-oauth-plugin [ 15900 ] | |
Component/s | Original: matrix-auth-plugin [ 18131 ] |
Assignee | Original: Daniel Beck [ danielbeck ] | New: Sam Gleske [ sag47 ] |
Summary | Original: API token doesn't work with Jenkins API when using group permission | New: Accessing Jenkins using API token does not populate group memberships |
What's the output of https://yourjenkins/whoAmI/api/xml when accessed with the API token?
My guess is, the group will not be among the authorities.