Api returns OAuth 2.0 not enabled for this method error

Iam trying to fetch details with the help of below code

import api, { route } from "@forge/api";

const response = await api.requestJira(route`/rest/api/3/applicationrole`, {
  headers: {
    'Accept': 'application/json'
  }
});

console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json()); 
permissions:
  scopes:
    - read:jira-work
    - read:issue-details:jira
    - read:jira-user
    - read:group:jira

I have used both asUser and asApp , but it’s returning me the same error
OAuth 2.0 is not enabled for this method , is there any way to make it work or are there any other alternative for this end point
This endpoint returns products associated with groups

From what i read from the documentation this method doesn’t support OAuth 2.0 , is there any method that can get me similar details , or some way through which i can make it work in forge ?

Hi @random1knd ,

Welcome to the Atlassian developer community.

Some REST APIs such as GET /rest/api/3/applicationrole are not available to certain types of apps or even any apps at all.

FRGE-804: Allow access to the ‘All application roles’ Jira Rest API Endpoint via the fetch/api package (Enable OAuth 2.0) was previously raised to request this API be opened up.

Regards,
Dugald