I am trying to delete specific user(s) via REST API according
to docs https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-delete but returns OAuth 2.0 is not enabled for this method. error. Here is my code:
await API.asUser().requestJira(
route`/rest/api/3/user?accountId=${accountId}`,
{
method: "DELETE",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
},
);
I made the same request with the Authorization header in Postman and it was successful. What am i doing wrong?