I’m trying to figure out which Intercom App (Organization) triggered the configure flow, so that I can render the correct sheet for that organization.
Our use case is this: We have a multi-tenant system where each organization has its own URL. We want to render a sheet which is specific for that organization, and the idea is that there exists a 1-1 mapping between the Intercom organization and our organization.
The problem we have today is that as far as I can see, there is no way of telling which organization the request comes from, only the user that triggered it. Other integrations seem to rely on the email field today, but in our case the email is not unique across our entire system, only for each tenant. (This is similar to how Slack does it) There is a team_ids field, but this does not map to anything on our end. I’m also confused as to why this is represented as an array, when you are triggering the Messenger App in a specific team’s messenger, not for all the teams you belong to.
Is there a way to reliably link the intercom organization and our organization, perhaps something which is exposed through the install flow which we haven’t been able to test yet?
Thanks for all your hard work so far!