rlsaj
rlsaj

Reputation: 735

Shopify: Add scope without interrupting existing App users

I have a Shopify App that deals with products and shipping. The current scope is:

scope = ["read_shipping", "write_shipping", "read_products"]

New functionality needs new scope as:

scope = ["read_shipping", "write_shipping", "read_products",
  "write_products", "read_inventory", "write_inventory",
  "read_fulfillments", "write_fulfillments", "read_price_rules",
  "write_price_rules"]

For new App users everything is fine. How do I introduce this new scope to existing App users by:

Upvotes: 0

Views: 1186

Answers (2)

Umut
Umut

Reputation: 94

This is somewhat possible nowadays with the optional scopes feature.

The only thing missing is making the scopes optional for existing installs but mandatory for new installs.

I had asked Shopify support how to handle the scopes update to minimize app uninstalls at a time when this feature wasn't yet implemented. They had said this:

it's true that there is a possibility some users may choose not to accept the new permissions, which could lead to a loss of subscribers. However, this is a common occurrence when apps request additional permissions.

I'm glad they decided to put an end to this situation and implemented the optional scopes feature. It would also be nice to have the hybrid option I mentioned earlier for an even better user experience.

Upvotes: 0

David Lazar
David Lazar

Reputation: 11427

You add the new scopes you need to your App. Whenever ANYONE re-authenticates they will be prompted by Shopify to accept the new scopes. That is the only way to do it. No you cannot sneak in new scopes with existing installs, hoping they will just get the new scopes without them knowing about it.

Upvotes: 2

Related Questions