Skip to content

[JENKINS-59105] Accessing Jenkins using API token does not work in group memberships #588

Description

@jenkins-infra-bot

I am using Role Based Strategy to manage user permission.

I have an account under group A. I give this group Admin permission. When I call rest API with user API token Jenkins rejects the request with 403 Forbidden Error. If I add this user directly to the global roles and grant appropriate permission, it works. 

It seems API authorization doesn't work with Group. Any idea on this?


Originally reported by hmr5kor, imported from: Accessing Jenkins using API token does not work in group memberships
  • status: Open
  • priority: Major
  • component(s): folder-auth-plugin, role-strategy-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 14
  • imported: 20251211-223321
Raw content of original issue

I am using Role Based Strategy to manage user permission.

I have an account under group A. I give this group Admin permission. When I call rest API with user API token Jenkins rejects the request with 403 Forbidden Error. If I add this user directly to the global roles and grant appropriate permission, it works. 

It seems API authorization doesn't work with Group. Any idea on this?

environment
Jenkins version : 2.174<br/>
Role-based Authorization Strategy version : 2.10<br/>
---<br/>
Jenkins: 2.332.3<br/>
Folder-based Authorization Strategy: 1.4  <br/>
Folders: 6.722.v8165b_a_cf25e9

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions