3LO get last granted site

From here https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/#faq2 we know about array of accessible resources for /accessible-resources endpoint.
Is it possible to know last granted site?
For me array is sorted and last item is not last granted.

So seems only way to use another cloud instance with 3LO is remove app from profile and grant another site.

Thank you.

Suspect that the answer to this will be related to the answer to my question:

1 Like

Thank you @danielwester. But I do not want revoke, just want to know granted in current session site. Revoke seems is only solution for now. One is only and last)).

Hi @avelit

We are currently aware of this problem i.e. not showing granted site in current session, and is on our roadmap but won’t be coming by next quarter.

Any workarounds you could suggest until current granted site does come?

My users want to select multiple sites. The only workflow I can come up with is asking which site they want after they just answered that on the auth page. This then also requires more to be built around adding the next site that may or may not be in the last grant.

@ChrisDunavan You got it right. The current workaround is to select the granted site in your UI after going through consent screen. You can get the list of sites that have scopes granted by token by calling https://api.atlassian.com/oauth/token/accessible-resources API.

I’m running into this issue as well - is there any plan to show the granted site in current session?

Is the only workaround allowing a user to select site(s) in my app after authorizing a specific site in via 3LO?