Aggregating Analytics Across Separate Dev and Production Orgs

Yo! I am managing our multi-org setup and I am trying to figure out a way to pull analytics from both our dev and prod orgs into one place. Right now I have to log into each one separately and it is a massive pain. Is there a way to use one OAuth client to hit both orgs, or do I have to build a separate collector for each environment?

You definitely have to build a separate collector. OAuth clients are strictly locked to the organization where they were created. We do this for our healthcare apps to keep our sandbox data separate from HIPAA production data.

Just spin up two instances of your worker script with different environment variables. It is the safest way to handle it.

I agree with the previous poster. I ran into this when I was trying to debug our screen recording extension across environments. The org ID is hardcoded into the session, so you cannot hop between them with one token.

If you really want them in one place, just dump the JSON results into a shared S3 bucket or something.

This is yet another case of the platform making things harder than they should be. I spend half my day dealing with SAML login loops because of this exact multi-org nonsense. You have to create separate credentials for every single environment.

There is no ‘multi-org’ API key. It is frustrating, but you just have to script around it.