Optional Access Scopes for Admin Extensions

Is there a way to use optional access scopes specifically for Admin Extensions? I’d like to have certain permissions requested only when a merchant tries to use a specific admin extension, rather than requiring all possible scopes during the initial app install. Is there any supported way to prompt for the required permissions on demand, just for an extension, if they’re not needed for the rest of the app?

There is already an authorization screen if the permissions haven’t been accepted yet:

But it’d be great if you could use the same thing for scopes required just for that extension. Would appreciate any guidance or updates on whether this is possible, or if there are plans to support it!

Hi! At the moment there’s not a built-in API for Admin Extensions to request optional scopes. However, you could use Remix’s scopes.request method on a backend route that your extension talks to.