I’m also looking for guidance on this as well.
There is a User resource in the API, which has an attribute that indicates if the User is the store owner. However, the documentation says:
The User resource is available forprivate appsandcustom appsinstalled on**Shopify Plus**stores. Contact Shopify Plus Support to enable this API resource for your store.
https://shopify.dev/api/admin-rest/2022-01/resources/user#top
I’m not sure if that means it’s ONLY available for those apps, which seems strange given priority of Public apps.
That said, I’m also trying to adjust our UX if the user is store admin, so any guidance from Shopify would be helpful.