Scope does not match

Trying to access info about the current user via UI kit but I keep getting { code: 401, message: 'Unauthorized; scope does not match' }

I assume I lack a permission but would expect read:confluence-user to be the right one.


From my manifest:

permissions:
  scopes:
    - 'storage:app'
    - 'read:jira-user'
    - 'read:confluence-user'

Code to replicate:

import api, {route} from '@forge/api';

async function myData(){
  const req = await api.asUser().requestConfluence(route`/rest/api/3/myself`); 
  const result = await req.json();
  console.log({result});
}

Some questions / thoughts:

Thank you so much :slight_smile: