How can I tell if a new user is a member of a specific sub-account?

If I listen to one of the user webhooks and have the scopes necessary to pull info for a user or an account from the API, is it possible to find out which sub-account a user belongs to?

We have an account-install marketplace app installed for multiple sub-accounts under a master account. We would like to flip different switches for new users depending on the sub-account they’re in.

Hi @ryan3,

Thanks for reaching out about this. If you’re using an OAuth app, you should be able to track the user’s account ID by decoding the access_token that’s generated when they install the app. Let me know if this post helps:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.