Skip to main content
Question

How to merge anonymous IDs with custom user IDs and promote them as original_app_user_id

  • September 23, 2025
  • 1 reply
  • 54 views

Forum|alt.badge.img

Hi everyone,

I have a mobile app that originally relied on $RCAnonymousIDs to manage subscriptions. Now, we’ve introduced mandatory signup, so I’m now working on migrating from anonymous IDs to our own custom user IDs.

What’s not clear to me is the best way to handle the transition:

  • How can I merge an existing custom user ID with the old $RCAnonymousID values already in the system? Should this be done via the API, or does the SDK handle it automatically?

  • In some cases, the custom user ID is already listed as an alias of an anonymous ID. How can I “promote” the custom ID so it becomes the original_app_user_id instead of the anonymous one?

Has anyone here gone through a similar migration? Any guidance on the best practices would be really helpful.

Thanks!

This post has been closed for comments

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • September 25, 2025

Hi ​@marco-1cc1d9,

You can just call logIn in the SDK and we will automatically merge the anonymous user to the new custom app id. From that moment, that customer will be identified both as the anonymous id and the your custom one. You cannot change the original one since that’s the first identifier and it could cause issues for customers who are still relying on that anonymous identifier.

Since you can access all the info with the new custom app id, there shouldn’t be a need to rely on the original one. You can read more here about how it works.

Let me know if this helps!