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 (github.com)
const result = await api.asUser().requestJira(`/rest/api/3/users`); const status = result.status; return JSON.stringify(result);