What are the best ways to handle multiple users in a single Shopify store in a custom app?

What are the best ways to handle multiple users in a single Shopify store in a custom app?

Dheeraj_Chouhan
Shopify Partner
2 0 0

We’re building a multi-tenant custom app for Shopify.

In our case, multiple users from the same store might log in and use the app. We want to group all users under the same store account.

Our main questions are:

- How do other app developers group users from the same store?
- We are using a tenant ID for grouping — can we reliably use the shop (shop domain) as the tenant identifier instead?

Any best practices or real-world suggestions.

Replies 2 (2)

Patriachxpart
New Member
6 0 0
use that shop domain as your tenant key and store it with your user data. Maybe set up a table like users with columns for user_id, shop_domain, and whatever else you need. That way, you can query all users by shop domain and group them on the fly. Also, lean on Shopify’s access scopes to make sure users only see what they’re allowed to keeps things tight and secure. Real-world tip: I’ve seen devs add a “store admin” role to flag one user as the primary contact, which helps with permissions or notifications down the line.
Dheeraj_Chouhan
Shopify Partner
2 0 0

Thanks for the response.

Please consider below scenario:
There are 2 users : User A, User B
Store name: test-store-1
Both users are on same store.

Questions:

1. If User A install and app, will it visible to User B also ? or User B should install it again ?
2. If our user-id is the email id, should I consider shop-domain as my tenant id? for each store new tenant ?