I would like to restrict a button in my custom UI to members of a specific Confluence group.
I’ve created the group and added myself on my developer testing site. If I hit the URL for that in my browser, I can see the expected output. However, when I try to use the API in my code, either as app or as user, I am denied access. I can’t figure out what permission or setting I should change to get the access I am after.
const response = await api.asUser().requestConfluence(
route`/wiki/rest/api/group/${GROUP_NAME}/member?limit=50&start=${start}`
);
The response indicates a 401. I also tried it, as I mentioned, asApp() and received a 401.
I have the following in my manifest:
permissions:
scopes:
- read:confluence-user
- read:confluence-groups
- storage:app
… so I would expect the app to be able to request the endpoint I’m hitting. I would prefer to not rely on the user’s permission, even if I could get that to work. Any ideas?