Using "Group ID" as App User ID in RevenueCat

  • 26 July 2021
  • 2 replies


Hi. There are groups in my app and the groups have a couple of members. If one of them pays for subscription, I change the group status and all the members in group can access premium contents.


Can I initialize the ‘group id’ instead of user id (firebase auth uid) ? Is it a good practice? Do I have to use aliases?

My code: await Purchases.setup(_api_key, appUserId:;



2 replies

Userlevel 4
Badge +8

Hey @esp!


That should be fine to use a “Group ID” in place of an App User ID in RevenueCat. 


RevenueCat will keep the subscription status in sync against an provided identifier, so in this case the subscription status would be tied to the “Group”, not an individual customer, which sounds preferable for your use-case.


Keep in mind that things like Subscriber Attributes will also be at the group level, along with Customer Lists, etc.


Thank you @ryan