Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
When I look at my ActiveScratchOrg Limit via the REST API, it is showing that there are Scratch Orgs in use:
However, when I query ActiveScratchOrgs or ScratchOrgInfo I get no results. Why would this be?
Was able to replicate the scenario and you would need to enable 'View All' permission for 'Active Scratch Orgs' object so that when you execute query it returns expected results.
SELECT count() FROM ActiveScratchOrg.