Hi
I needt current users accountId.
I am trying to get it from ‘myself’ resurse for currently logged in user by jira cloud rest api, but i can’t find a way to make it happen.
AtlassianHostRestClients.authenticatedAsAddon().getForObject(urir, String.class);
returns the addon information and
AtlassianHostRestClients.authenticatedAsHostActor().getForObject(uri, String.class);
returns an error:
Was asked to authenticate the rest client as the current acting user on the host, but none could be inferred from the current request
Is there a better way to find currently logged in users accountId?