Scopes for reading user data

Hi!

I’m trying to read user data in a Forge plugin using the fetch API:

api.asApp().requestConfluence(route`wiki/rest/api/user?accountId=abc`)

According to the documentation, I added this permission scope to my app:

permissions:
  scopes:
    - 'read:confluence-user'

However, the API call gives a 401, Unauthorized; scope does not match. Running forge lint -fix doesn’t add any permissions at all to my manifest. Is it even possible to fetch user details from an app context and what permissions are required in that case?

Thanks!

For the permission, I found that only restarting the tunnel did not help, upgrading the installation of the app was also needed.

But the fact that forge lint --fix doesn’t recognize the required scope (given that the manifest does not contain any) remains.

1 Like