Product fetch API returns 403

I have created a sample custom UI project page app with “forge create”.

I just added this piece of code to the index.js to get all users but all endpoints return 403.

asUser or asApp, tried both but returns 403.

Whole code is here: baldrsonoffrigg/customUIgetAllusers (

  const result = await api.asUser().requestJira(`/rest/api/3/users`);
  const status = result.status;  

  return JSON.stringify(result);

Hi @MertTurkoglu,

have you redeployed your app since adding the scope?

I’ve cloned your app, ran forge register, deployed it to my site, and it worked without issue.


1 Like

yes it works now but I did not change anything . No idea why It did not work in the first place.